payments.validateRequestedInfo
Submit requested order information for validation
func (c *Client) PaymentsValidateRequestedInfo(ctx context.Context, request *PaymentsValidateRequestedInfoRequest) (*PaymentsValidatedRequestedInfo, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PaymentsValidateRequestedInfo(ctx, &tg.PaymentsValidateRequestedInfoRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *PaymentsValidatedRequestedInfo
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Save | bool | — | Save order information to re-use it for future orders |
Invoice | InputInvoiceClass | yes | Invoice |
Info | PaymentRequestedInfo | yes | Requested order information |
Returns
*PaymentsValidatedRequestedInfo
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | MESSAGE_ID_INVALID | The provided message id is invalid. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
payments.validateRequestedInfo#b6c8f12b