Layer 220
PaymentsAssignAppStoreTransaction
Informs server about a purchase made through the App Store: for official applications only.
method
Users
payments.assignAppStoreTransaction#80ed747d receipt:bytes purpose:InputStorePaymentPurpose = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| Receipt | bytes | Receipt |
| Purpose | InputStorePaymentPurpose | Payment purpose |
Returns
UpdatesPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | INPUT_PURPOSE_INVALID | The specified payment purpose is invalid. |
| 400 | RECEIPT_EMPTY | The specified receipt is empty. |
Gogram Example
// PaymentsAssignAppStoreTransaction - positional arguments result, err := client.PaymentsAssignAppStoreTransaction([]byte{}, &tg.InputStorePaymentPurpose{}) if err != nil { // handle error } // result is *tg.Updates