payments.canPurchaseStore #

Checks whether a purchase is possible. Must be called before in-store purchase, official apps only.

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
payments.canPurchaseStore#4fdc5ea7 purpose:InputStorePaymentPurpose = Bool;

Parameters #

NameTypeDescription
purposeInputStorePaymentPurposePayment purpose.

Result #

Bool

Only users can use this method #

This method can be invoked over an unauthenticated connection » #

Possible errors #

CodeTypeDescription
400INPUT_PURPOSE_INVALIDThe specified payment purpose is invalid.
406PREMIUM_CURRENTLY_UNAVAILABLEYou cannot currently purchase a Premium subscription.