#guillaume1landr_best-practices
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/1314326107771900036
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there ๐ I'm not sure I'm grasping what you're asking. Are you able to share the ID of a Checkout Session from your testing that didn't work for what you're trying to do, with context on why that didn't work?
Sorry, let me rephrase
We are selling a gift card form the GiftUp 3rd party. After the purchase the gift card recipient receive an email that include a promocode.
Since it's the holyday season we are currently offering a sale, thus when we create the checkout session using the api we embedded a coupon code to the checkout page. Thus the user can't enter the promocode from the gift card to their purchase, Stripe only let us put 1 coupon/promocode in the checkout page.
For exemple the user would receive a 100$ gift card with the 'XQD34' promocode, then how could we let them enter the code while also offering them a discount on their purchase?
I'm pretty sure the short answer is that you can't, because stacking coupons and/or promotion codes is only supported when creating/updating Subscription objects directly:
https://docs.stripe.com/billing/subscriptions/coupons#stackable-coupons
Trying to think through whether there is a workaround here, like collecting the promo code from your customer before directing them to the Checkout Session, and handling those discounts behind the scenes.
Yeah, I saw there was a possibility to add a Balance to the customer (https://docs.stripe.com/billing/customer/balance#api), but then I feel like i'm losing the ability to link the actual coupon/promocode to the user, since the coupon would never be used, I am worried that this solution will be opening doors for issues like refunds.
Original buyer would open a dispute, after the user balance have been updated for instance
Yeah, the customer balance came to mind for me as well, since it looks like you're working with Subscriptions which can consume that balance.
Yeah we do subscription, but also single time purchase.
Ah, I don't think the single payments will draw down the cusotmer balance.
https://dashboard.stripe.com/test/coupons/K7QUV if you have access to this
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
This is the coupon created by the 'GiftUp' service
The only way they might is if you invoice creation turned on for the sessions, but even then I don't think they will.
Then from that coupon, i tried to create a promocode and associate it with a user, but it did not transfer the amount to the user balance
From the gift up documentation
Connect Gift Up to your Stripe account, and we will enable your Gift Up gift card codes to be used as Coupons in your Stripe account. Stripe Coupons are support
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Not really, those dashboard links only work for you. I'd need a different ID to look things up, but I'm not too sure why you want me to look at it.
I'm just trying to provide as much information i can
I don't really have more insight to offer here. It doesn't sound like the third-party service you're hoping to use will play nice with the additional requirements that you have (already using other coupons in Checkout Sessions, and, processing one-off payments without creating Invoices to pull from the customer's balance).
You're either going to need to custom code a new redemption flow for the promotion codes provided by the third party to fit them into your flow, or consider building your own gift card solution.