Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

StoreKit.CanMakePayments

Indicates whether the user is allowed to make payments.

Component Version macOS Windows Linux Server iOS SDK
StoreKit 8.2 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "StoreKit.CanMakePayments" )

Parameters

none

Result

Returns 1 or 0.

Description

Indicates whether the user is allowed to make payments.
Returns 1 if the user is allowed to authorize payment. 0 if they do not have permission.
An iPhone can be restricted from accessing the Apple App Store. For example, parents can restrict their children’s ability to purchase additional content. Your application should confirm that the user is allowed to authorize payments before adding a payment to the queue. Your application may also want to alter its behavior or appearance when the user is not allowed to authorize payments.

Examples

Check status:

Set Variable [ $r ; Value: MBS( "StoreKit.CanMakePayments" ) ]

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


StoreKit.AddPayment - StoreKit.FinishTransaction

Feedback: Report problem or ask question.