payments.assignAppStoreTransaction
Informs server about a purchase made through the App Store: for official applications only.
func (c *Client) PaymentsAssignAppStoreTransaction(ctx context.Context, request *PaymentsAssignAppStoreTransactionRequest) (UpdatesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PaymentsAssignAppStoreTransaction(ctx, &tg.PaymentsAssignAppStoreTransactionRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Receipt | []byte | yes | Receipt |
Purpose | InputStorePaymentPurposeClass | yes | Payment purpose |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | INPUT_PURPOSE_INVALID | The specified payment purpose is invalid. |
| 400 | RECEIPT_EMPTY | The specified receipt is empty. |
References
- Official documentation
- Generated Go reference
- TL definition:
payments.assignAppStoreTransaction#80ed747d