Sessions
With Yuno, 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 Yuno. A customer session provides access to all available payment methods for enrollment, which you can offer to customers.
Available payment methods
When creating both sessions, customer and checkout, the Yuno system will provide you with a list of all enable the payment methods in your Yuno dashboard within 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 Yuno. A checkout session provides access to all available payment methods for that customer, whether previously enrolled or not.
Create a payment without a checkout session
By utilizing Direct integration, which doesn't require Yuno's SDK, you can create a payment without the need for a checkout session.
For more detailed information on how to use the Create checkout session endpoint, refer to the API reference.
Updated 16 days ago