POST
/
payments
/
session_tokens
curl --request POST \
  --url https://api.staging.bnplx.io/payments/session_tokens \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '{
  "payment_id": "<string>",
  "client_secret": "<string>",
  "wallets": [
    "direct_debit"
  ],
  "merchant_connector_details": {
    "creds_identifier": "<string>",
    "encoded_data": {
      "connector_account_details": {},
      "metadata": {}
    }
  }
}'
{
  "payment_id": "<string>",
  "client_secret": "<string>",
  "session_token": [
    {
      "delayed_session_token": true,
      "connector": "<string>",
      "sdk_next_action": {
        "next_action": "post_session_tokens"
      },
      "wallet_name": "google_pay"
    }
  ]
}

Authorizations

api-key
string
header
required

Publishable keys are a type of keys that can be public and have limited scope of usage.

Body

application/json

Response

200
application/json
Payment session object created or session token was retrieved from wallets

The response is of type object.