payments.getBankCardData
Get info about a credit card
func (c *Client) PaymentsGetBankCardData(ctx context.Context, number string) (*PaymentsBankCardData, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PaymentsGetBankCardData(ctx, number)
if err != nil {
return err
}
_ = res // *PaymentsBankCardData
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Number | string | yes | Credit card number |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | BANK_CARD_NUMBER_INVALID | The specified card number is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
payments.getBankCardData#2e79d779