#rohan_api

1 messages · Page 1 of 1 (latest)

wooden lodgeBOT
#

đź‘‹ 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/1228355696974762015

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

rare pivotBOT
iron patio
#

Hello

subtle heart
#

Hey, let me look

#

Is there anything different about this API (e.g. functionality when embedded in an iframe) as compared to the payment request button?

iron patio
#

Not in that regard, no.

#

It is just newer/better and will continue to be developed (as opposed to Payment Request Button which is still supported but will no longer have any features added)

subtle heart
#

Gotcha. Does the API return the individual button components, or is it just a single component we need to put somewhere?

#

Also, functionally, it looks like this one is correctly showing Google Pay. What's different under the hood? Does it not still use the payment request API?

iron patio
#

It uses the same API to show Google Pay

#

That shouldn't really be different

#

But yeah it is just a single component that would show any of the wallet options you have enabled

subtle heart
#

Hm, gotcha. Can we call it multiple times with one payment method enabled per call? We currently control the display of each button individually (to align to our grid, etc.), so it'd be nice to get each button as a separate component to mount

subtle heart
iron patio
subtle heart
#

It has to be multiple StripeJS instances? I can't just make the same call multiple times?

iron patio
#

You can't render multiple of the same Element components, no.