Stripe Session Service
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
GetSession
Gets a Stripe session
Parameters:
id
Id of the Stripe Session
Session GetSession(string id);
GetSessionAsync
Gets a Stripe session asynchronously
Parameters:
id
Id of the Stripe Session
Task<Session> GetSessionAsync(string id);
CreateSession
Creates a Stripe session
Parameters:
basket
The basket to be stored in the Stripe Session
Session CreateSession(Basket basket);
CreateSessionAsync
Creates a Stripe session asynchronously
Parameters:
basket
The basket to be stored in the Stripe Session
Task<Session> CreateSessionAsync(Basket basket);
ClearSession
Clears the Stripe session
Parameters:
id
Id of the Stripe Session
void ClearSession(string id);
ClearSessionAsync
Clears the Stripe session asynchronously
Parameters:
id
Id of the Stripe Session
Task ClearSessionAsync(string id);
Last updated