类型 事件 分派链 ▸ Runtime 修订版 发行版 2024.3703 关键字 Apple、IAP、应用内购买、App Store 推广购买 另请参阅 store.deferStorePurchases() store.proceedToPayment store.* 
App Store 购买被延迟并发送给通过 store.deferStorePurchases() 设置的侦听器时会生成此事件。
event.name始终设置为 "appStorePurchase"。
event.product与 productList.products 条目相同的商品描述。
event.payment此值可传递给 store.proceedToPayment 以显示付款请求。它还包含以下字段
event.payment.type始终为 "payment"
event.payment.productIdentifier商品标识符
以及其他模拟 SKPayment 字段的可选字段。
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)