VerifyMicrosoftReceipt
Verify Microsoft Receipt. On success, the player will be awarded the associated currencies.
Service | Operation |
---|---|
product | VERIFY_MICROSOFT_RECEIPT |
Method Parameters
Parameter | Description |
---|---|
receipt | Receipt XML |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
string receipt = "Receipt XML";
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};
_bc.ProductService.VerifyMicrosoftReceipt(receipt, successCallback, failureCallback);
const char *receipt = "Receipt XML";
_bc->getProductService()->verifyMicrosoftReceipt(receipt, this);
// NA
// N/A
var receipt = "Receipt XML";
_bc.product.verifyMicrosoftReceipt(receipt, result =>
{
var status = result.status;
console.log(status + " : " + JSON.stringify(result, null, 2));
});
// N/A
var receipt = "Receipt XML";
var productProxy = bridge.getProductServiceProxy();
var postResult = productProxy.verifyMicrosoftReceipt(receipt);
if (postResult.status == 200) {
// Success!
}
{
"service": "product",
"operation": "VERIFY_MICROSOFT_RECEIPT",
"data": {
"receipt": "Receipt XML"
}
}
JSON Response
{
"status": 200,
"data": {
"result": "OK"
}
}