#geferon_code

1 messages ยท Page 1 of 1 (latest)

inner belfryBOT
#

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

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

random basalt
#

Hi there

hybrid dust
#

Hi!

random basalt
hybrid dust
#

Oh great so there is a way! Only that it's serverside but that's not a problem

random basalt
#

Oh oh

#

I missed above you said you were using Embedded components.

#

Sorry, yeah no custom_unit_amount Prices aren't yet supported with Embedded Components.

#

So in this case you would want to allow your customer to input the amount and then you would generate a Price for that amount and render Payment Element (with Embedded Components) after that.

#

You can use price_data to create that Price inline when you create the Checkout Session

hybrid dust
#

Ah I see, and there is no way of doing this on the go during checkout instead of whenever creating the checkout session?

#

Or is there perhaps a better way of doing this that I'm not aware of? Because maybe I'm just overcomplicating it

random basalt
hybrid dust
#

Ah fair, yeah I guess that would be easier
The difference here though is that the products aren't managed through stripe, but only the payment no?

random basalt
#

You mean with the custom integration?

hybrid dust
#

Yeah

random basalt
#

Yeah you don't use Products/Prices but you can always set metadata on the PaymentIntent to indicate your own product that was associated.

#

Just depends on how you want to set it up.

hybrid dust
#

Okay, good to know, thanks for the help! ๐Ÿ™‚

random basalt
#

Sure thing!

hybrid dust
random basalt
#

We hope to bring Embedded Components to parity with our other Checkout flows, yes. But unfortunately I don't have a timeline for when custom_unit_amount might be supported.

hybrid dust
#

Good to know ๐Ÿ™‚ Thanks for the help nonetheless โค๏ธ