Reputation: 2861
I'm using the following option to create a Stripe session and it work fine, however there may be a case where a user would subscribe to a product which has multiple prices depending on location, currency etc.
Is it possible to amend the option to allow the user to choose the price from a list of possible product prices, or is there another way to achieve this?
thanks
var options = new SessionCreateOptions
{
SuccessUrl = successUrl,
CancelUrl = cancelUrl,
Mode = "subscription",
AllowPromotionCodes = true,
LineItems = new List<SessionLineItemOptions>
{
new SessionLineItemOptions
{
Price = Request.Form["priceId"],
Quantity = 1,
},
}
};
Upvotes: 0
Views: 447
Reputation: 1079
There isn't a way in Checkout to show a list of currencies and let the user choose. Instead you can create multi-currency Prices as described here which will be used as a Presentment local currency to the customer in the Checkout Session. You can read through this to have a better sense of the flow
Upvotes: 2