Integrate with Enhance - Construct
Using older version? Download library for Construct 2
In App Payments
The connector library provides a set of functions which help you to make use of different In-App Payment SDKs in your app.
Example Usage

ACEs
Refresh status
Action Refresh status()
On status received
condition will be triggered. Attempt purchase
Action Attempt purchase(
String productName
)
On purchase success
or the On purchase failed
condition will be triggered. Parameters:
String productName
- The reference name which you entered during the Enhance flow (SKU Mappings).
Consume purchase
Action Consume purchase(
String productName
)
On consume success
or the On consume failed
condition will be triggered. Parameters:
String productName
- The reference name which you entered during the Enhance flow (SKU Mappings).
Manually restore purchases
Action Manually restore purchases()
On restore purchases success
or the On restore purchases failed
condition will be triggered. Check if item is owned
Action Check if item is owned(
String productName
)
On item is owned
or the On item is not owned
condition will be triggered. Parameters:
String productName
- The reference name which you entered during the Enhance flow (SKU Mappings).
Get item count
Action Get item count(
String productName
)
On owned item count received
condition will be triggered. Parameters:
String productName
- The reference name which you entered during the Enhance flow (SKU Mappings).
Get display price
Action Get display price(
String productName,
String defaultPrice
)
On display price received
condition will be triggered. Parameters:
String productName
- The reference name which you entered during the Enhance flow (SKU Mappings).
String defaultPrice
- Default value, used if the real one cannot be fetched for any reason.
Get display title
Action Get display title(
String productName,
String defaultTitle
)
On display title received
condition will be triggered. Parameters:
String productName
- The reference name which you entered during the Enhance flow (SKU Mappings).
String defaultTitle
- Default value, used if the real one cannot be fetched for any reason.
Get display description
Action Get display description(
String productName,
String defaultDescription
)
On display description received
condition will be triggered. Parameters:
String productName
- The reference name which you entered during the Enhance flow (SKU Mappings).
String defaultDescription
- Default value, used if the real one cannot be fetched for any reason.
On status received
Condition On status received()
Is supported
condition. Is supported
Condition Is supported()
true
if available, false
otherwise. On purchase success
Condition On purchase success(
String productName
)
Parameters:
String productName
- The reference name which you entered during the Enhance flow (SKU Mappings).
On purchase failed
Condition On purchase failed(
String productName
)
Parameters:
String productName
- The reference name which you entered during the Enhance flow (SKU Mappings).
On consume success
Condition On consume success(
String productName
)
Parameters:
String productName
- The reference name which you entered during the Enhance flow (SKU Mappings).
On consume failed
Condition On consume failed(
String productName
)
Parameters:
String productName
- The reference name which you entered during the Enhance flow (SKU Mappings).
On restore purchases success
Condition On restore purchases success()
On restore purchases failed
Condition On restore purchases failed()
On item is owned
Condition On item is owned(
String productName
)
Check if item is owned
action. Parameters:
String productName
- The reference name which you entered during the Enhance flow (SKU Mappings).
On item is not owned
Condition On item is not owned(
String productName
)
Check if item is owned
action. Parameters:
String productName
- The reference name which you entered during the Enhance flow (SKU Mappings).
On item count received
Condition On item count received(
String productName
)
Enhance.LastOwnedItemCount
expression. Parameters:
String productName
- The reference name which you entered during the Enhance flow (SKU Mappings).
On display price received
Condition On display price received(
String productName
)
Enhance.LastDisplayPrice
expression. Parameters:
String productName
- The reference name which you entered during the Enhance flow (SKU Mappings).
On display title received
Condition On display title received(
String productName
)
Enhance.LastDisplayTitle
expression. Parameters:
String productName
- The reference name which you entered during the Enhance flow (SKU Mappings).
On display description received
Condition On display description received(
String productName
)
Enhance.LastDisplayDescription
expression. Parameters:
String productName
- The reference name which you entered during the Enhance flow (SKU Mappings).