cURL
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": "post_session_tokens" }, "wallet_name": "google_pay" } ] }
Creates a session object or a session token for wallets like Apple Pay, Google Pay, etc. These tokens are used by Hyperswitch’s SDK to initiate these wallets’ SDK.
Show child attributes
Was this page helpful?