Layer 220
PaymentsCanPurchaseStore
Checks whether a purchase is possible. Must be called before in-store purchase, official apps only.
method
Users
payments.canPurchaseStore#4fdc5ea7 purpose:InputStorePaymentPurpose = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Purpose | InputStorePaymentPurpose | Payment purpose. |
Returns
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | INPUT_PURPOSE_INVALID | The specified payment purpose is invalid. |
| 406 | PREMIUM_CURRENTLY_UNAVAILABLE | You cannot currently purchase a Premium subscription. |
Gogram Example
// PaymentsCanPurchaseStore - positional arguments result, err := client.PaymentsCanPurchaseStore(&tg.InputStorePaymentPurpose{}) if err != nil { // handle error } // result is *tg.Bool