Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3    Statistic  

StoreKit.AddPayment

Adds a new payment to the transaction query.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
StoreKit 8.2 Yes No No No Yes

MBS( "StoreKit.AddPayment"; productIdentifier { ; quantity } )

Parameters

Parameter Description Example value
productIdentifier The product identifier. 1234
quantity Optional
The quantity of the product.
Default is 1.
1

Result

Returns OK or error.

Description

Adds a new payment to the transaction query.
When a payment request is added to the queue, the payment queue processes that request with the Apple App Store and arranges for payment from the user. When that transaction is complete or if a failure occurs, the payment queue sends the payment transaction object that encapsulates the request to all transaction observers.
Use StoreKit.Transactions later to query status.

Examples

Start order of item:

Set Variable [ $r ; Value: MBS( "StoreKit.AddPayment"; "123"; 1 ) ]

See also


Speech.Speak   -   StoreKit.CanMakePayments

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins