store.proceedToPayment()

Type Function
Return value none
Revision Release 2024.3703
Keywords Apple, IAP, in-app purchases, App Store Promoted Purchases
See also store.deferStorePurchases()
store.*

Overview

When your app is ready you can show deferred payment request.

Syntax

store.proceedToPayment( transaction )
payment (required)

Table. Payment object. This value must be obtained from the appStorePurchase.payment field.

Example

local store = require( "plugin.apple.iap" )

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)