Saltar al contenido principal

Una publicación etiquetados con "checkout"

Ver Todas las Etiquetas

Checkout - Update on available payment types endpoint 🗑️

· Lectura de un 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:

FieldTypeDescriptionMandatory
amountIntThe amount of the payment in cents.yes
customerReferenceStringYour unique identifier of the customer.yes
sirenStringThe customer SIREN or SIRET. This field is optional but recommended to improve conversion.no