Retrieve Payment Methods to Enroll

Get the list of payment methods the user has available for enrollment.

GET/checkout/customers/sessions/{customer_session}/payment-methods

Path Parameters

customer_sessionstringrequired

The customer session that has been created for the enrollment using the Create Customer Session endpoint (UUID, 36 chars).

Response

200

payment_methodsobject[]
Show payment_methods properties
namestring
descriptionstring
typestring
categorystring
iconstring
enrollmentobject
Show enrollment properties
sessionstring
sdk_required_actionboolean

400

codestring
messagesstring[]

401

codestring
messagesstring[]

403

codestring
messagesstring[]
Request
curl -X GET "https://api-sandbox.whitelabel.com/v1/checkout/customers/sessions/<customer_session>/payment-methods" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>"
Response
{
  "payment_methods": [
    {
      "name": "Visa Credit Card",
      "description": "Visa Credit Card",
      "type": "VISA",
      "category": "CARD",
      "icon": "https://icons.prod.whitelabel.com/visa_logosimbolo.png",
      "enrollment": {
        "session": "6641e30d-ca7a-440f-b97c-24231eac6dab",
        "sdk_required_action": false
      }
    }
  ]
}