Sessions
With WHITELABEL, you can create sessions to initiate payments or register payment methods for future purchases. There are two types of sessions: customer sessions and checkout sessions. These sessions ensure the correct information is collected for each scenario.
Customer session
Use customer sessions to enroll and store a customer’s payment methods. Create a new customer session each time you register a payment method for a specific customer. You’ll need the customer_id (a unique customer identifier) generated when creating the customer in WHITELABEL. A customer session provides access to all available payment methods for enrollment, which you can offer to customers.
Available payment methods
When creating either session type, customer or checkout, the WHITELABEL system returns a list of all enabled payment methods. These are the payment methods configured in your WHITELABEL dashboard, under the Connections and Checkout builder section.
For more detailed information on how to use the Create customer session endpoint, see API reference.
Checkout session
Use checkout sessions to create payments or initiate the payment flow. Each time a customer makes a payment, you must create a new session. You’ll need the customer_id (a unique customer identifier) generated when creating the customer in WHITELABEL. A checkout session provides access to all available payment methods for that customer, whether previously enrolled or not. A checkout session expires 2.5 hours after it is created, and updating it does not extend that time.
Create a payment without a checkout session
Direct integration doesn’t require WHITELABEL’s SDK, so you can create a payment without a checkout session.
For more detailed information on how to use the Create checkout session endpoint, see API reference.