Server to Server Check - Server
如果您希望以中文查看此页面,请单击此处。
How to validate with Aptoide Connect's API?
In order to validate the transaction with Aptoide Connect's API, you will need to send a request from your server to our API. As a response, you will receive information about the transaction and by receiving this response it means that the purchase is valid.
Purchase Response
After completing a purchase in your client app, you will receive a purchase response in your application that looks like this. This will be your source of information to call our API.
{
"packageName": "your.package.name",
"sku": "yourSKU",
"token": "catappult.inapp.purchase.anIdWithNumbersAndLetters",
"developerPayload": "stringBasedDeveloperPayload",
"itemType": "inapp",
"isAutoRenewing": false,
"orderId": "anIdWithNumbersAndLetters",
"signature": "internalAptoideConnectSignature",
"originalJson": {
"orderId ": "anIdWithNumbersAndLetters",
"packageName": "your.package.name",
"productId ": "yourSKU",
"purchaseTime": 123456789,
"purchaseToken": "catappult.inapp.purchase.anIdWithNumbersAndLetters",
"purchaseState": 0,
"developerPayload": "stringBasedDeveloperPayload",
"autoRenewing": false,
"type": "inapp"
}
}
API Request
From this response you can retrieve the necessary information to use as parameters to call our API, using the In-App Purchase Verification endpoint.
Handling the API Response
If you get a status code 200 OK
form the request it means the purchase was successfully validated.
Subscriptions
Validating subscriptions follows with exact same logic pointing to the Subscription Purchase Verification endpoint.
Updated 2 months ago