Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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" ) ]
This function is free to use.
Created 22nd April 2018, last changed 22nd April 2018