Type Method

canMakePayments

Indicates whether the user is allowed to make payments.

Declaration

+ (BOOL)canMakePayments;

Return Value

YES if the user is allowed to authorize payment. NO if they do not have permission.

Discussion

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.

See Also

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software