POST
/
v2
/
payments
/
{payment_id}
/
create-external-sdk-tokens
curl --request POST \
  --url https://sandbox.hyperswitch.io/v2/payments/{payment_id}/create-external-sdk-tokens \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '{}'
{
  "payment_id": "<string>",
  "session_token": [
    {
      "delayed_session_token": true,
      "connector": "<string>",
      "sdk_next_action": {
        "next_action": "post_session_tokens"
      },
      "wallet_name": "google_pay"
    }
  ],
  "vault_details": {
    "vgs": {
      "external_vault_id": "<string>",
      "sdk_env": "<string>"
    }
  }
}

Authorizations

api-key
string
header
required

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

Path Parameters

payment_id
string
required

The identifier for payment

Body

application/json · object

Response

200
application/json

Payment session object created or session token was retrieved from wallets

The response is of type object.