Skip to content

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.PurchaseToken received through the purchase result event
  • storeTransactionId: GooglePurchase.OrderId of the same purchase information
  • productId: Product ID of the product the user purchased. The purchase token contains no product information, so you must pass it
  • accountUuid: The value created in Generate an AccountUuid, the same value you put in LaunchBillingFlowRequest.ObfuscatedAccountId
  • 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, send the following values required for the subscription product receipt verification request.

  • axylReceipt: GooglePurchase.PurchaseToken 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 value you put in LaunchBillingFlowRequest.ObfuscatedAccountId
  • 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.