Payment System

After successful purchasing items with platform IAP service, you can use following APIs to upload payment receipt for SG analysis service, and download previous order information.

Upload Payment Data

API
 GET POST /pay
Description

After successful purchasing items in your Apps, upload order and payment receipt information for SG analysis service.

Example
https://gameapi.smartgamesltd.com/pay?productId=com.smartgamesltd.diamond1&productName=diamond&price=1.99
Parameters

JSON string of SGPayRequest

Response

JSON string of SGPayResponse

Get Order

API
 GET POST /getorder
Description

Obtain detailed order and receipt information of previous successful orders.

Example
https://gameapi.smartgamesltd.com/getorder?orderid=my_orderid&gamekey=my_gamekey&openid=my_openid&sign=my_sign
Parameters
gameKey Your developer identification.
openId SG member ID.
orderId Order ID you passed in when making the purchase.
sign Signature generated from above three parameters.
Please refer to signature algorithm.
Response

JSON string of SGPayResponse