POST
/
payments
/
session_tokens
curl --request POST \
  --url https://sandbox.hyperswitch.io/payments/session_tokens \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '{
  "payment_id": "<string>",
  "client_secret": "<string>",
  "wallets": [
    "ach"
  ],
  "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": "confirm"
      },
      "wallet_name": "google_pay"
    }
  ]
}

Authorizations

api-key
string
headerrequired

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

Body

application/json
payment_id
string
required

The identifier for the payment

client_secret
string
required

This is a token which expires after 15 minutes, used from the client to authenticate and create sessions from the SDK

wallets
enum<string>[]
required

The list of the supported wallets

Available options:
ach,
affirm,
afterpay_clearpay,
alfamart,
ali_pay,
ali_pay_hk,
alma,
apple_pay,
atome,
bacs,
bancontact_card,
becs,
benefit,
bizum,
blik,
boleto,
bca_bank_transfer,
bni_va,
bri_va,
card_redirect,
cimb_va,
classic,
credit,
crypto_currency,
cashapp,
dana,
danamon_va,
debit,
efecty,
eps,
evoucher,
giropay,
givex,
google_pay,
go_pay,
gcash,
ideal,
interac,
indomaret,
klarna,
kakao_pay,
mandiri_va,
knet,
mb_way,
mobile_pay,
momo,
momo_atm,
multibanco,
online_banking_thailand,
online_banking_czech_republic,
online_banking_finland,
online_banking_fpx,
online_banking_poland,
online_banking_slovakia,
oxxo,
pago_efectivo,
permata_bank_transfer,
open_banking_uk,
pay_bright,
paypal,
pix,
pay_safe_card,
przelewy24,
pse,
red_compra,
red_pagos,
samsung_pay,
sepa,
sofort,
swish,
touch_n_go,
trustly,
twint,
upi_collect,
vipps,
walley,
we_chat_pay,
seven_eleven,
lawson,
mini_stop,
family_mart,
seicomart,
pay_easy
merchant_connector_details
object

Response

200 - application/json
payment_id
string
required

The identifier for the payment

client_secret
string
required

This is a token which expires after 15 minutes, used from the client to authenticate and create sessions from the SDK

session_token
object[]
required

The list of session token object

  • Option 1

  • Option 2

  • Option 3

  • Option 4

  • Option 5

  • Option 6