StoreKit.CanMakePayments
------------------------

Indicates whether the user is allowed to make payments.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [StoreKit](component_StoreKit.md) | [8.2](newinversion82.md) | ✅ 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

  
[StoreKit.AddPayment](StoreKitAddPayment.md) - [StoreKit.FinishTransaction](StoreKitFinishTransaction.md)

[HTML Version](StoreKitCanMakePayments.shtml)