#guillaume1landr_best-practices

1 messages ยท Page 1 of 1 (latest)

pallid ploverBOT
#

๐Ÿ‘‹ 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.

loud badgerBOT
nova trench
#

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?

dreamy vine
#

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?

nova trench
#

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.

dreamy vine
#

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.

Learn how to use the customer credit balance.

#

Original buyer would open a dispute, after the user balance have been updated for instance

nova trench
#

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.

dreamy vine
#

Yeah we do subscription, but also single time purchase.

nova trench
#

Ah, I don't think the single payments will draw down the cusotmer balance.

dreamy vine
#

This is the coupon created by the 'GiftUp' service

nova trench
#

The only way they might is if you invoice creation turned on for the sessions, but even then I don't think they will.

dreamy vine
#

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

nova trench
#

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.

dreamy vine
#

I'm just trying to provide as much information i can

nova trench
#

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.