Prepare receipt information
For the app server to request receipt verification, the app client must pass the receipt and purchase information it received as the payment result to the app server. Collect the values you received in Step 3. Purchase a product as follows and pass them to the app server API that your app implements. The app server puts each value in the field with the same name in the receipt verification request.
Consumable products
For consumable products, pass the following values needed for the consumable product receipt verification request.
axylReceipt:AppleTransaction.JwsRepresentationin the success response of Request Apple App Store paymentstoreTransactionId:AppleTransaction.Idin the same responseproductId: The Product ID of the product the user purchasedaccountUuid: The value created in Generate an AccountUuid, the same as the value you put inPurchaseOptions.AppAccountTokenrequestType: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, pass the following values needed for the subscription product receipt verification request.
axylReceipt:AppleTransaction.JwsRepresentationof the subscription payment. The same value asAxylReceiptin the Save subscription purchase information requestaccountUuid: The value created in Generate an AccountUuid, the same as the value you put inPurchaseOptions.AppAccountTokencountry,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.