#Jack at Spatial
1 messages ยท Page 1 of 1 (latest)
Hi there. Yeah:
https://stripe.com/docs/billing/subscriptions/coupons#promotion-codes
https://stripe.com/docs/payments/checkout/discounts#promotion-codes
Depending on if you're doing 1 time or subscription payments
You'd have to write custom code though if you don't want to use Checkout to handle the codes
I do want to use checkout to handle the codes
Am I able to set something up so that if users go to cancel their subscription, that is asks them 'are you sure' and then offers them a discount?
Hi ๐ Stripe does not have prebuilt functionality for that, if that is a feature you would like to add to your site/app then you will need to build that flow.
Cool, good to know.
Regarding my original question: So I totally understand how I can setup a discount code.
How can I make it so that a unique discount code gets generated every time for every new customer that would use the code.
I'm about to explain in more detail.
My company Spatial.io wants to run a promo where if a new user fills out a form that we setup (whether that be a typeform or a google form or something equivalent) and if the new user inputs valid information ( i.e. valid links to their account profiles) that the user will then be given a unique promo code that they can redeem when purchasing our subscription offering.
Does that make sense?
Totally don't wanna come across as annoyed or as a pest. I really appreciate your support. Personally my day to day job involves providing support to our users on discord all the time so I very much empathize with your line of work.
I'm legit hopping back and forth from supporting our users in our companies discord, and then hopping back in here haha. Gotta love discord!
If you're not using our Checkout Sessions, is it safe to assume you're using a custom checkout experience for your customers that uses our Payment Element?
Nooo we have never made any custom checkout experiences. People have always, and will always be paying through the official stripe portal.
Oh gotcha, so then you would create a new Promotion Code every time you need a new one:
https://stripe.com/docs/api/promotion_codes/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.