Type Event Dispatch chain ▸ Runtime Revision Release 2025.3721 Keywords Apple, IAP, in-app purchases, App Store Promoted Purchases See also store.deferStorePurchases() store.proceedToPayment store.*
This event is generated when App Store purchase is deferred and sent to listener set by store.deferStorePurchases().
event.nameAlways set to "appStorePurchase".
event.productProduct description identical to productList.products entry.
event.paymentThis value can be passed to store.proceedToPayment to show the payment request. It also contains following fields
event.payment.typeAlways "payment"
event.payment.productIdentifierProduct identifier
And other optional fields mimicking SKPayment fields.
local store = require( "store" )
local function transactionListener( event )
-- ...
end
store.init( transactionListener )
local function deferredPurchases(event)
local payment = event.payment
-- Tore `payment` somewhere and when time is right call
store.proceedToPayment(payment)
end
store.deferStorePurchases(deferredPurchases)