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
Last updated
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
Task<Session> CreateSessionAsync(Basket basket);
Clears the Stripe session
Parameters:
id
Id of the Stripe Session
void ClearSession(string id);
Clears the Stripe session asynchronously
Parameters:
id
Id of the Stripe Session
Task ClearSessionAsync(string id);