#nhannguyenvan_code

1 messages ยท Page 1 of 1 (latest)

astral bloomBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

nimble sageBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

full pivot
silver birch
#

I need create invoice, get paymentIntetn to render UI, and add promotion code with update invoice , and confirm payment

full pivot
#

Then follow the guide above ๐Ÿ™‚

silver birch
#

when call api create invoice, does it return paymentIntetn to reder UI or return null

#

I mean this invoice

full pivot
#

Just creating one won't generate a Payment Intent

silver birch
#

follow like that
Create invoice -> get paymeentIntent -> render UI in client side -> apply promotion code -> confirm payment is it posible

full pivot
#

You can't finalize and then apply a discount/promotion code. That needs to be done before finalizing

silver birch
#

got it. because I use paymentIntent and can't use promotion code so I want use another way but not want redirect stripe page

full pivot
#

No redirect, and supports promotion codes

silver birch
#

but can't not custom UI right

full pivot
#

Customisation is limited yes

silver birch
#

I use PaymentElement to custom in my site

full pivot
#

Uses the Checkout Sessions API, so has promotion code support, but the UI is fully customisable and works with Elements

silver birch
#

yep got it, can you wait me a minute to take a look through doc?

full pivot
#

Sure, but as I said it's a beta. You'll need to request access before you can use it

silver birch
#

I just try create invoice

#

it still return paymentIntent Id

#

can you check it

full pivot
#

You need to send me the in_xxx ID

silver birch
#

got you

#

so

#

summary like this:

full pivot
silver birch
#

got you

#

cool

#

let me have a look

#

are you free atm or need to do another work?