Checks whether a purchase is possible. Must be called before in-store purchase, official apps only.
boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
payments.canPurchaseStore#4fdc5ea7 purpose:InputStorePaymentPurpose = Bool;
Name | Type | Description |
---|---|---|
purpose | InputStorePaymentPurpose | Payment purpose. |
Code | Type | Description |
---|---|---|
400 | INPUT_PURPOSE_INVALID | |
406 | PREMIUM_CURRENTLY_UNAVAILABLE | You cannot currently purchase a Premium subscription. |