These instructions are for setting up SocialGold payments that can be displayed to the player trough HTML IFrames or popups.
If you want to use the SocialGold Flash API for in-game payments, scroll down to that section below.
Example of bying coins with SocialGold in ActionScript 3:
| Required GetBuyCoinsInfo() Arguments | |
|---|---|
| offer_id | The offer id can be found by viewing the Payment Offer you created on the SocialGold website. |
| Result Values | |
| socialgoldurl | The URL the user should visit to do the purchase. You can show this in a popup or an IFrame or redirect the user to it. |
Example of bying items directly with SocialGold in ActionScript 3:
| Required GetBuyCoinsInfo() Arguments | |
|---|---|
| offer_id | The offer id can be found by viewing the Payment Offer you created on the SocialGold website. |
| title | The description of the purchase as it will be presented to the user |
| Result Values | |
| socialgoldurl | The URL the user should visit to do the purchase. You can show this in a popup or an IFrame or redirect the user to it. |
If you want to use the In-game Flash API from SocialGold, the procedure is slightly different, and you can only use this for purchasing coins. You will need to set up a different offer on their website, and you need to include their Flash API package in your game.
Example of bying coins with SocialGold in ActionScript 3:
| Required GetBuyCoinsInfo() Arguments | |
|---|---|
| offer_id | The offer id can be found by viewing the Virtual Currency Offer you created on the SocialGold website. |
| flash | Set this argument to 'true' |
| Result Values | |
| offerid | These parameters should be used when creating a service request using the SocialGold Flash API. |
| userid | |
| signingkey | |