Receipt Verification / TBC Recharge
For receipt verification, you must perform an in-app purchase and receive a receipt token first.
Refer to the following links for a guide on in-app purchases:
FromJson
FromJson(string json, out string productId, out string purchaseToken) ;
Parameters
Value | Type | Description |
---|---|---|
json | string | Receipt token issued after purchase |
productId | string | (out) Product ID |
purchaseToken | string | (out) Actual receipt token |
Description
To verify a Google receipt in BACKND Function, you must parse the productId and purchaseToken values of the receipt using this method and transmit them to BACKND Function.
Example
string pid = string.Empty;
string token = string.Empty;
BackEnd.Game.Payment.GoogleReceiptData.FromJson("Google receipt token", out id, out token);