Prepare receipt information
For the app server to request receipt verification, the app client must send the receipt and purchase information received as the payment result to the app server. Collect the values received in Step 3. Purchase a product as shown below and send them to the app server API implemented by your app. The app server puts each value into the field with the same name in the receipt verification request.
Consumable products
For consumable products, send the following values required for the consumable product receipt verification request.
axylReceipt:GooglePurchase.PurchaseTokenreceived through the purchase result eventstoreTransactionId:GooglePurchase.OrderIdof the same purchase informationproductId: Product ID of the product the user purchased. The purchase token contains no product information, so you must pass itaccountUuid: The value created in Generate an AccountUuid, the same value you put inLaunchBillingFlowRequest.ObfuscatedAccountIdrequestType:1for a new purchase,2for a receipt obtained again through Restore purchases- Optional: Values such as
price,currency,iapPayload, andserverIdthat you put in the payment result save request
Subscription products
For subscription products, send the following values required for the subscription product receipt verification request.
axylReceipt:GooglePurchase.PurchaseTokenof the subscription payment. The same value asAxylReceiptin the Save subscription purchase information requestaccountUuid: The value created in Generate an AccountUuid, the same value you put inLaunchBillingFlowRequest.ObfuscatedAccountIdcountry,language: The country code and language code you put in the subscription purchase information save requestrequestType:1for a new purchase,2for a receipt obtained again through Restore purchases- Optional: Values such as
currencyandserverIdthat you put in the subscription purchase information save request - Optional:
iapPayloadthat contains theIapPayloadyou put in thePrepareSubscriptionAsync()request in Save pre-purchase information before opening the store payment window
Next steps
On the app server, verify the receipt with the Hive Axyl Server API.