#nemoai_api

1 messages ¡ Page 1 of 1 (latest)

buoyant epochBOT
#

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

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

cursive osprey
astral bough
#

This is the layout I got:

#

It doesn't look good

#

We would look like this:

#

We managed to make it look like this with the this api:
stripe.PaymentIntent.create

but there is no Coupon support with this api, am I correct?

buoyant epochBOT
astral bough
#

I would like to understand If this kind of layout can be done with the second approach?
stripe.checkout.Session.create
stripe.Webhook.construct_event
STRIPE_WEBHOOK_SECRET

Since the url is generated by Stripe's side

cursive osprey
#

I don't think we have that level of flexibility in appearance customization in Checkout

#

unfortunately

astral bough
#

So if I would like it to look like this, what should I do?

cursive osprey
#

You could consider looking at PaymentElements, which is an embeded approach, which gives you more freedom but takes more efforts for implementation

astral bough
#

Can you please share with me the relevant documentation? i'll look into it

#

Thank you

pastel saddle
astral bough
#

Thank you Vanya, Does it have support to coupons?

pastel saddle
#

This is an advanced custom integration, that only supports providing the final amount. You will need to implement the coupons functionality yourself.

astral bough
#

So I won't be able to leverage the coupons functionality built-in which stripe offers?
like:

  1. adding coupons?
  2. Seeing statistics of coupons usage
  3. managing coupons (removing/modifying coupons)
    etc.
pastel saddle
#

Correct

astral bough
#

Are you sure?
Are you a Bot? or a human being?

pastel saddle
#

I am a human

#

Yes, I am sure. When using Payment Element you only provide the final amount. All discounts/taxes/etc. need to be calculated on your own.

astral bough
#

Got it,
so in the company's product's backend I should manage all the coupons stuff, that's what you're suggesting?

#

Is there no other solution?

pastel saddle
#

"Manage coupon stuff" in the sense that you have to implement your own discount system. It won't work with Stripe Coupons.

astral bough
#

So I can use the built-in "Manage coupon stuff" only If I use stripe.checkout.Session.create
stripe.Webhook.construct_event ?

#

(Just want to understand the issue better)

pastel saddle
#

How are webhooks related to this exactly?

#

Yes, Stripe Coupons are only supported on Stripe Checkout.

astral bough
#

Ok, got it!
Thank you for your patient

#

Have a lovely day!