+ All Categories
Home > Technology > Social Gold In-Flash Payments Webinar

Social Gold In-Flash Payments Webinar

Date post: 28-Jan-2015
Category:
Upload: social-gold
View: 112 times
Download: 0 times
Share this document with a friend
Description:
in this presentation we give a brief intro to Social Gold, an overview of the in-flash solution architecture followed by a step by step integration example.
32
In-Flash Payments Overview
Transcript
Page 1: Social Gold In-Flash Payments Webinar

In-Flash Payments Overview

Page 2: Social Gold In-Flash Payments Webinar

AGENDA

•About Us

•In-Flash Payments: Overview

•Architecture

•Security

•Roadmap

•Integration

Page 3: Social Gold In-Flash Payments Webinar

WHAT WE ARE

A platform that allows you to monetize virtual goods via direct

payments and optimize via in-depth analytics

Page 4: Social Gold In-Flash Payments Webinar

WHAT WE OFFER

•Micropayments & Subscriptions

•Virtual Currency: txns & inventory mgmt

•Reporting & Analytics

•Fraud Control

•Customer Service

Page 5: Social Gold In-Flash Payments Webinar

SERVICES ACCESSED VIA API

Page 6: Social Gold In-Flash Payments Webinar

IN-FLASH PAYMENTSUser Benefits

- No interruption of flow

- No additional login required

Developer Benefits

- Get callbacks directly in AS3 or Flex

- No reload required – less server load

- Preserve “flow” and user engagement

Page 7: Social Gold In-Flash Payments Webinar

IN-FLASH PAYMENTS FLOW

Page 8: Social Gold In-Flash Payments Webinar

CREDIT CARD ENTRY: IN-GAME

Page 9: Social Gold In-Flash Payments Webinar

BILLING ADDRESS ENTRY: IN-GAME

Page 10: Social Gold In-Flash Payments Webinar

CONFIRMATION: IN-GAME

Page 11: Social Gold In-Flash Payments Webinar

SEAMLESS RETURN TO GAME

Balance is updated in real time,

while game state is

maintained.

Page 12: Social Gold In-Flash Payments Webinar

SINGLE-CLICK REPEAT PURCHASES

Page 13: Social Gold In-Flash Payments Webinar

SINGLE-CLICK PAYPAL, TOO!

Page 14: Social Gold In-Flash Payments Webinar

IN SHORT . . .

•You focus on building awesome games

•We provide a frictionless and secure payments experience within your game

•We help you maximize revenue without sacrificing engagement

Page 15: Social Gold In-Flash Payments Webinar

PRODUCT DESCRIPTION

A SWC that less you initiate a UI to enable customer payments

•Your app receives events when the payment completes

•You choose whether the UI is an html browser popup or a Flash display object

Page 16: Social Gold In-Flash Payments Webinar

PRODUCT ARCHITECTURE

Page 17: Social Gold In-Flash Payments Webinar

SECURITY OBJECTIVESPriorities

- Secure customer data

- Secure developer credentials

Starting Points

- Trusted merchants (you)

- Merchant-hosted games

- Existing ID platform (FB, MS or your own)

Page 18: Social Gold In-Flash Payments Webinar

ROADMAP

UX

- More payment methods in Flash

- Support for portals/ non-hosted sites

Payments Stuff

- More payment methods (Latin America, etc)

- Local currencies (36+ currencies…)

Page 19: Social Gold In-Flash Payments Webinar

INTEGRATIONYou’ll need . . .

•Valid merchant accounthttp://getsocialgold.com

•Configured virtual currency Flash offerhttp://www.jambool.com/socialgold/offers

•Social Gold Flash API SWChttp://www.jambool.com/socialgold/flash/download

•Server side environment (PHP, Ruby, JSP, etc.)

Page 20: Social Gold In-Flash Payments Webinar

INSTALLATION & DOCUMENTATION

•Unpack Social Gold API zip file

•Add the dist/SocialGold.swc file to your project library path

•Open dist/doc/index.html and select SocialGoldService (from bottom left frame)

Page 21: Social Gold In-Flash Payments Webinar

GETTING STARTED: STEP ONE

Send user_id, signing key and environment to your

app

Page 22: Social Gold In-Flash Payments Webinar

# Add the following to a Controller or Helper:def signing_key_for_user( user_id ) offer_id = "your offer id here” merchant_secret_key = "your secret key here” current_period = (Time.now.to_i * 1.0 / 1.day).to_i raw_signing_key = "#{offer_id}#{user_id}#{current_period}#{merchant_secret_key}” return Digest::MD5.hexdigest(raw_signing_key)end

# Add the following to an ERB template:<html><head> <script type="text/javascript" src="scripts/swfobject-1.5.1.js"> </script> <script> function embed() { var so = new SWFObject("YourApplication.swf", "swf", "100%", "100%"); so.addVariable("userId", "<%= user_id %>"); so.addVariable("signingKey", "<%= signing_key_for_user(user_id) %>"); so.addVariable("environment", "<%= environment %>"); so.write("flash-content"); } </script></head><body onload="embed()"> <center> <div id="flash-content"></div> </center></body></html>

Page 23: Social Gold In-Flash Payments Webinar

GETTING STARTED: STEP TWO

Collect flashvars in ActionScript

Page 24: Social Gold In-Flash Payments Webinar

// ActionScript Project:this.parameters = root.loaderInfo.parameters;

// Flex Framework Project:this.parameters = Application.application.parameters;

Page 25: Social Gold In-Flash Payments Webinar

GETTING STARTED: STEP THREE

Instantiate & Configure the SocialGoldService

Page 26: Social Gold In-Flash Payments Webinar

service = new SocialGoldService();service.userId = parameters.userId;service.signingKey = parameters.signingKey;service.offerId = ‘yourofferidhere’;

// Set a display object container for the buyCurrency UI:service.modalParent = stage;

// Pass in ‘sandbox’ or ‘production’ for environment:service.environment = parameters.environment;

// Set true to use Flash UI for buyCurrency calls:service.useInAppPayments = true;

// (Optional) Set true when debugging:service.debug = (parameters.environment != ‘production’);

Page 27: Social Gold In-Flash Payments Webinar

GETTING STARTED: STEP FOUR

Call an API method & Handle events on the

request

Page 28: Social Gold In-Flash Payments Webinar

var request:SocialGoldRequest = service.buyCurrency();

// Called on Success:request.addEventListener(SocialGoldEvent.SUCCESS,

buyCurrencySuccessHandler);// Called on Failure:request.addEventListener(SocialGoldEvent.FAILURE, buyCurrencyFailureHandler);// Called after every request:request.addEventListener(SocialGoldEvent.COMPLETE, buyCurrencyCompleteHandler);

private function buyCurrencySuccessHandler(event:SocialGoldEvent):void { trace(">> buyCurrency SUCCESS");} private function buyCurrencyFailureHandler(event:SocialGoldEvent):void { trace(">> buyCurrency FAILURE");} private function buyCurrencyCompleteHandler(event:SocialGoldEvent):void { trace(">> buyCurrency COMPLETE");}

Page 29: Social Gold In-Flash Payments Webinar

GETTING STARTED: OPTIONAL STEP

Show & Hide a loading animation

Page 30: Social Gold In-Flash Payments Webinar

// Called when UI load starts:request.addEventListener(SocialGoldEvent.UI_LOAD_STARTED,

uiLoadStartedHandler);// Called when UI load is complete:request.addEventListener(SocialGoldEvent.UI_LOAD_COMPLETED, uiLoadCompletedHandler);

private function uiLoadStartedHandler(event:SocialGoldEvent):void {trace(">> uiLoadStartedHandler");addChild(yourLoadingAnimationInstance);

}

private function uiLoadCompletedHandler(event:SocialGoldEvent):void {trace(">> uiLoadCompletedHandler");removeChild(yourLoadingAnimationInstance);

}

Page 31: Social Gold In-Flash Payments Webinar

GETTING STARTED: FINAL STEP

Ship it!

Page 32: Social Gold In-Flash Payments Webinar

Virtual Economies. Real Revenues.


Recommended