Android
Initiate an in-app purchase for a product or subscription.
Last updated
Initiate an in-app purchase for a product or subscription.
Last updated
Use this action on purchase button clicks to open the payment dialog.
Go to the Workflow tab and select the event trigger (e.g., Button Click).
Add the "In-App Purchase" action.
Configure the following properties:
"Product ID": Enter the product identifier.
"Product Type": Select INAPP
for one-time purchases or SUBS
for subscriptions.
"Is Consumable": Set to true
for consumable products or false
for non-consumable items.
The in-app purchase response will be stored in the Android In-App Purchase Receipt Data
state of the init-webtonative
element in string format. To use this response in subsequent workflows or actions, you need to parse it into a JavaScript object first.