#momovsky_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1384868543086202880
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ happy to help
no you can still give customers coupons through the discounts array
I can only attach it to a customer's subscription
yes
And if I want to give user without a subscription a coupon, my best bet is saving it somewhere on my side, and then applying it on checkout session?
yes
Sorry let me expand on my flow a bit:
- On my platform, user can receive a link to join a coupon
- When user accesses that link, we check if customer exists in stripe with the same email, and create a new one if it does not exist
- Then we attach a coupon to said customer by updating Customer object with param {"coupon": coupon_id}
- Then the user can in whatever moment in the future access Stripe and they will have a coupon applied on their checkout automatically.
This is how it worked pre-Basil. And now this flow is completely deprecated, correct? Can't attach a coupon without a subscription/checkout session?
correct
Ok thank you for your time!