v1

latestOpenAPI 3.0.02026-07-26168846732.2 KB
Payments

Payments - Session token

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.

post/payments/session_tokens

Request body

payment_idstring required

The identifier for the payment

client_secretstring nullable

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

walletsPaymentMethodType[] required

The list of the supported wallets

Response

Payment session object created or session token was retrieved from wallets

payment_idstring required

The identifier for the payment

client_secretstring required

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

Example response

{
  "session_token": [
    {
      "transaction_info": {
        "total_price": "38.02"
      }
    }
  ]
}