Authorizations
Use the API key created under your merchant account from the HyperSwitch dashboard. API key is used to authenticate API requests from your merchant server only. Don't expose this key on a website or embed it in a mobile application.
Body
The customer id for which the payment methods session is to be created
"cus_y3oqhf46pyzuxjbcn2giaqnb44"
The return url to which the customer should be redirected to after adding the payment method
The Payment Service Provider Configuration for payment methods that are created using the payment method session
The network tokenization configuration for creating the payment method session
The time (seconds ) when the session will expire If not provided, the session will expire in 15 minutes
x >= 0
900
Contains data to be passed on to tokenization service ( if present ) to create token_id for given JSON data
Response
Create the payment method session
"12345_pms_01926c58bc6e77c09e809964e72af8c8"
The customer id for which the payment methods session is to be created
"12345_cus_01926c58bc6e77c09e809964e72af8c8"
The iso timestamp when the session will expire Trying to retrieve the session or any operations on the session after this time will result in an error
"2023-01-18T11:04:09.922Z"
Client Secret
The Payment Service Provider Configuration for payment methods that are created using the payment method session
The network tokenization configuration for creating the payment method session
Contains data to be passed on to tokenization service ( if present ) to create token_id for given JSON data
The return url to which the user should be redirected to
Contains the url for redirection flow
The payment method that was created using this payment method session
The token-id created if there is tokenization_data present
"12345_tok_01926c58bc6e77c09e809964e72af8c8"