#nhannguyenvan_code

1 messages ¡ Page 1 of 1 (latest)

wispy quartzBOT
#

👋 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/1263071656729907220

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

hot charm
#

Hello

solemn crater
#

hi! PaymentIntents don't support anything like that no. You can build your own UI/logic for accepting a coupon(note, not the ones you actually create in Stripe, since those only work for Checkout or Subscriptions, I mean in general), and then update the PaymentIntent amount in API, though. Or use Checkout.

hot charm
#

Atm I want to interacte coupon in STRIPE. Do we have anyway I can update the BE logic to redeeem or trigger one time using coupon after user paid?

#

Follow maybe like this : Get coupon by api -> User paid with promotion code -> Redeem a coupon .

solemn crater
#

not really possible using raw PaymentIntents. Can you use Checkout instead?

hot charm
#

Do we have any api to redeem coupon after user paid?

solemn crater
#

no, there's no way to "manually" redeem a Coupon in the API, it can only be redeemed by using it in a compatible product like Subscriptions/Checkout.

hot charm
#

yep, thank you so much , can I add friend with you to easier for contact :D?

#

ah

#

another question

#

Can we custom UI if I use Subscriptions/Checkout ?

solemn crater
#

what sort of customisations are you looking for?

hot charm
#

something similar this