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.
GET POST /payDescription
After successful purchasing items in your Apps, upload order and payment receipt information for SG analysis service.
Examplehttps://gameapi.smartgamesltd.com/pay?productId=com.smartgamesltd.diamond1&productName=diamond&price=1.99Parameters
JSON string of SGPayRequest 。
ResponseJSON string of SGPayResponse 。
GET POST /getorderDescription
Obtain detailed order and receipt information of previous successful orders.
Examplehttps://gameapi.smartgamesltd.com/getorder?orderid=my_orderid&gamekey=my_gamekey&openid=my_openid&sign=my_signParameters
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. |
JSON string of SGPayResponse 。