Stripe Basket Controller
Last updated
Last updated
The StripeBasketController
is a preconfigured Umbraco Surface Controller which interacts with the .
It can be found within the namespace UmbCheckout.Stripe.Controllers.Surface
It has a number of methods available as a starting point to allow UmbCheckout to be consumed without the need to write C# code.
Adds an item to the Basket, the example below would typically be used on the Product page
This method sets the following TempData
UmbCheckout_Added_To_Basket
Increases the specified item quantity, the example below would typically be used on the Basket page
This method sets the following TempData
UmbCheckout_Added_To_Basket
Reduces the specified item quantity, the example below would typically be used on the Basket page
This method sets the following TempData
UmbCheckout_Basket_Reduced
Removes the specified item, the example below would typically be used on the Basket page
This method sets the following TempData
UmbCheckout_Basket_Removed
Starts the Stripe Checkout process, the example below would typically be used on the Basket page
This method sets the following TempData
UmbCheckout_EmptyBasket
If you would like to change the page which the user is redirected to after carrying out one of the above actions you simply need to pass in the page Guid
The example below shows how to do this with the Add method
Key of the added to the
Key of the increased in the
Key of the reduced in the
Key of the removed from the
Returns true if there are 0 s in the