Skip to main content
PUT
Payment Method Session - Update a saved payment method

Authorizations

Authorization
string
header
required

Format: publishable-key=<publishable-key>,client-secret=<client-secret>

Publishable keys are a type of keys that can be public and have limited scope of usage. Client Secret provide temporary access to singular data, such as access to a single customer object for a short period of time. This authentication scheme is used by the SDK.

Headers

X-Profile-Id
string
required

Profile ID associated to the payment method session

Path Parameters

id
string
required

The unique identifier for the Payment Method Session

Body

application/json
payment_method_data
object
connector_token_details
object | null

Token information that can be used to initiate transactions by the merchant.

network_transaction_id
string | null

The network transaction ID provided by the card network during a Customer Initiated Transaction (CIT) when setup_future_usage is set to off_session.

acknowledgement_status
enum<string> | null
Available options:
authenticated,
failed
payment_method_token
string | null

The payment method token associated with the payment method session. If not provided, a new token will be generated.

Example:

"token_9wcXDRVkfEtLEsSnYKgQ"

Response

The payment method has been updated successfully

id
string
required
Example:

"0a_pms_01926c58bc6e77c09e809964e72af8c8"

expires_at
string<date-time>
required

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

Example:

"2023-01-18T11:04:09.922Z"

client_secret
string
required

Client Secret

Example:

"cs_9wcXDRVkfEtLEsSnYKgQ"

storage_type
enum<string>
required
Available options:
volatile,
persistent
keep_alive
boolean
required

Whether the card with new status should be listed in the session

customer_id
string | null

The customer id for which the payment methods session is to be created

Example:

"0a_cus_01926c58bc6e77c09e809964e72af8c8"

billing
object | null
network_tokenization
object | null

The network tokenization configuration for creating the payment method session

tokenization_data
any | null

Contains data to be passed on to tokenization service ( if present ) to create token_id for given JSON data

return_url
string | null

The return url to which the user should be redirected to

Example:

"https://merchant-website.com/return"

next_action
object

Contains the url for redirection flow

authentication_details
object | null
associated_payment_methods
object[] | null

The payment method that was created using this payment method session

associated_token_id
string | null

The token-id created if there is tokenization_data present

Example:

"0a_tok_01926c58bc6e77c09e809964e72af8c8"

card_cvc_token_storage
object | null
payment_method_data
object
sdk_authorization
string | null

SDK authorization token for client SDK usage Contains encoded authentication details for subsequent API calls

Example:

"cHJvZmlsZV9pZD0uLi4="

network_tokenization_data
object | null
external_vault_details
object