Hi there -
Is it possible to add a field for a discount or promo code in a Stripe charge? (i.e. give a user $10 off their $20 purchase)
Or is that better handled in the app before the Stripe charge is called? Thanks! -Ian
Hi there -
Is it possible to add a field for a discount or promo code in a Stripe charge? (i.e. give a user $10 off their $20 purchase)
Or is that better handled in the app before the Stripe charge is called? Thanks! -Ian
Hi Ian,
If you want to use the full Stripe feature set, you can choose the “full Python” runtime, which has the official Stripe APIs installed (import stripe
). You can then call stripe.checkout.get_token
to get a Stripe token, and do the rest on the server. This gives you the full Stripe functionality. (The anvil.stripe
module only gives you a subset.)