Stripe Session Service
A service which handles all things around the Stripe Session
Last updated
A service which handles all things around the Stripe Session
The Stripe session service is what creates and handles the creation, updating and clearing of the Stripe session.
You can access the Stripe session service by injecting ISessionService which can be found within the namespace UmbCheckout.Stripe.Interfaces
Gets a Stripe session
Parameters:
id
Id of the Stripe Session
Session GetSession(string id);Gets a Stripe session asynchronously
Parameters:
id
Id of the Stripe Session
Task<Session> GetSessionAsync(string id);Creates a Stripe session
Parameters:
basket
The basket to be stored in the Stripe Session
Session CreateSession(Basket basket);Creates a Stripe session asynchronously
Parameters:
basket
The basket to be stored in the Stripe Session
Clears the Stripe session
Parameters:
id
Id of the Stripe Session
Clears the Stripe session asynchronously
Parameters:
id
Id of the Stripe Session
Last updated
Task<Session> CreateSessionAsync(Basket basket);void ClearSession(string id);Task ClearSessionAsync(string id);