You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In `customer` mode: * If `customer_id` is omitted, a new customer will be created. * If `customer_id` is given, updated payment information will be saved to that customer.
return_url
String
Specify the URL where user will be redirected to after they have completed or aborted the session. A `session_id` will be appended to this URL as a query parameter.
[optional]
amount
Integer
Amount greater than or equal to 0, in the lowest denomination of the currency (e.g. cents for USD).
Time in seconds until the session expires after being created. The default value and upper limit are 86,400 seconds (24 hours).
[optional]
external_customer_id
String
An unique identifier of your customer. If your system has the concept of user accounts, then the ID of the current logged in user would be appropriate.
Specify which payment types are available for this session. By default, all activated payment methods will be available for the session if this value is omitted.
Specify the line items which will be displayed on the session page.
[optional]
metadata
Object
Store any additional data you want to associate with the session. The object's keys and values must be strings. Keys have a maximum length of 30 characters. Values have a maximum length of 2000 characters.
[optional]
customer_id
String
If provided, updated payment details will be saved on the customer.