Skip to main content
Version: 5.9.6

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

ValueTypeDescription
jsonstringReceipt token issued after purchase
productIdstring(out) Product ID
purchaseTokenstring(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);