iOS Receipt Validation - General IAP
Validates iOS receipts received from the client.
Source Code
var result = pluginIap.iOSValidate({
version : "v20220801",
parameters : {
productId : "PRODUCT_ID",
receipt : "RECEIPT",
currency : "CURRENCY",
price : "PRICE"
}
});
if(result.statusCode == 200) {
log.debug(result.body.toString());
log.debug("success");
} else {
log.debug("fail");
}
Request Parameter
| Parameter | Description | Type |
|---|---|---|
| productUID | Payment product ID | string |
| receipt | iOS receipt information | string |
| currency | Payment currency code | string |
| price | Payment amount | double |
Response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"UserID" : "String",
"PackageName" : "String",
"OrderID" : "String",
"ProductID" : "String",
"Currency" : "String",
"Price" : "String",
"Quantity" : "Integer"
}
Response Details
| Data Key | Description | Type |
|---|---|---|
| UserID | Processing result | string |
| PackageName | App package name | string |
| ProductID | Payment product ID | string |
| OrderID | Order ID | string |
| Currency | Payment currency code | string |
| Price | Payment product price | string |
| Quantity | Purchase quantity | integer |