#panther-85_api
1 messages ยท Page 1 of 1 (latest)
๐ 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/1352226045050224723
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- panther-85_api, 1 day ago, 54 messages
- panther-85_api, 2 days ago, 18 messages
- panther-85_api, 5 days ago, 18 messages
Hi there ๐ I can't build the integration for you, but I may be able to offer insight depending on where in the process you're running into troubles. Can you provide more insight on what you're stumbling over currently?
Sure, Im just trying to figure out where I can set the UI mode of the checkout page to embedded in the API call
Here is my automation with the 3rd module being the API call to create a payment link, just need to make that embedded
Oh, I'm not sure how to do that on the make.com side of things, since they likely abstract over our API.
Do they let you specify API parameters yourself, or do they force you to choose from pre-defined options that they control?
Wait, it also looks like you're creating a Payment Link rather than a Checkout Session, is that right?
Only Checkout Sessions support the ui_mode parameter.
Okay, yeah you can choose your paramateres or create your own...So I can just create a checkout session after I create the payment link?
You don't create a Payment Link if you want to create an embedded checkout experience, unless your site allows you to embed the URL generated by the Payment Link in your site somehow.
Payment Links are designed to be a sort of one-link-for-all-customers solution. You generate a single Payment Link, then direct everyone to the URL it generates, and the Payment Link will automatically create a Checkout Session each time it's accessed.
Checkout Sessions on the other hand are single use. Each one can be used to complete one payment. If you're creating Checkout Sessions, then you can create them with a ui_mode of embedded to be have them creatd in a way where they can be embedded on your site using our client-side library.
Ah I see thanks man!
Any time!
So If this is the body of the APi call then where do I set the UI mode so i can embed it?
Seems like it'd be set right in there.
ui_mode is the parameter you're looking for:
https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-ui_mode
and you'll want to use a value of embedded for it
Okay cool, the call says it was successful however the URL for the checkout is empty
Can you share the creation requestId?
I dont understand, if you dont return the URL i would have to host a file myself?
Where is the creation request ID?
req_M80DIhgAbLlhJe
There's no URL because you're using embedded Checkout - one you can embed on your own site.
What are you trying to achieve exactly?
Im just trying to embed the checkout page in my application
But if I host it you cant embed it and if I embed it it seems like a have to do a massive workaround by using the SDK html and java in a file and then host that file and dynaiclaly replace the values...Not sure why its so hard to just embed a checkout pae
page*
if I host it you cant embed it
What do you mean by this?
If you get the checkout link that stripe returns and try embed it it dosent allow for embedding
That's not how embedded Checkout works.
It's not a URL you can use in an iframe.
You need Stripe.js to render embedded Checkout. Everything is described in detail here: https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=embedded-form
Okay so Ive made the API call to create the checkout session but i dont understand what is happening in the docs to mount the checkout
Like how do you mount the checkout?
So theres no way to simply get a URL that you can embed?
However, the JS API is slightly different: https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=embedded-form#mount-checkout
You're kinda giving the initEmbeddedCheckout() a function that fetches the Embedde Checkout client secret.
No.