Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

StoreKit.AddPayment

Adds a new payment to the transaction query.

Component Version macOS Windows Linux Server iOS SDK
StoreKit 8.2 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "StoreKit.AddPayment"; productIdentifier { ; quantity } )   More

Parameters

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

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

Blog Entries

This function checks for a license.

Created 22nd April 2018, last changed 22nd April 2018


SpeechRecognition.SupportsOnDeviceRecognition - StoreKit.CanMakePayments