Checkout - Update on available payment types endpoint 🗑️
· Lettura di 1 minuto
AvailablePaymentTypes
This endpoint return the list of payment types available for the customer card.
Instead of using this endpoint:
query {
merchant {
paymentMin
paymentMax
availablePaymentTypes
}
}
You should now use this one :
query {
availablePaymentTypes(
amount: 50048
customerReference: "reference_id"
siren: "882221385"
)
}
This endpoint will directly send you available payment types (Pay1X
, Pay3X
, Pay4X
, Pay30D
, Pay60D
), you don't need to do any calculation anymore 😉.
Params of the new Endpoint:
Field | Type | Description | Mandatory |
---|---|---|---|
amount | Int | The amount of the payment in cents. | yes |
customerReference | String | Your unique identifier of the customer. | yes |
siren | String | The customer SIREN or SIRET. This field is optional but recommended to improve conversion. | no |