Skip to content

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.JwsRepresentation in the success response of Request Apple App Store payment
  • storeTransactionId: AppleTransaction.Id in the same response
  • productId: The Product ID of the product the user purchased
  • accountUuid: The value created in Generate an AccountUuid, the same as the value you put in PurchaseOptions.AppAccountToken
  • requestType: 1 for a new purchase, 2 for a receipt obtained again through Restore purchases
  • Optional: Values such as price, currency, iapPayload, and serverId that 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.JwsRepresentation of the subscription payment. The same value as AxylReceipt in the Save subscription purchase information request
  • accountUuid: The value created in Generate an AccountUuid, the same as the value you put in PurchaseOptions.AppAccountToken
  • country, language: The country code and language code you put in the subscription purchase information save request
  • requestType: 1 for a new purchase, 2 for a receipt obtained again through Restore purchases
  • Optional: Values such as currency and serverId that you put in the subscription purchase information save request
  • Optional: iapPayload that contains the IapPayload you put in the PrepareSubscriptionAsync() 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.