Payment Sessions
Learn how to create and manage Payment Sessions to accept a payment.
Payment Sessions are a way to accept payments from your customers. You can create a Payment Session for a specific amount and currency, and share the Payment Session URL with your customers. Your customers can then pay using their preferred payment method.
Create a customer
Before creating a Payment Session, you need to create a customer. You can create a customer using the Customers API
If the request completed successfully, the response contains the customer object.
Create a Payment Session
To create a Payment Sessionamount
, currency
, customer
, payment_method_types
, and return_url
. The return_url
is where your customers will be redirected after the payment is completed.
If the request completed successfully, the Payment Session object contains the url
parameter.
Share the Payment Session URL
After creating a Payment Session, you will receive a Payment Session URL. Share this link with your customers so they can pay using their preferred payment method.