#benign-gorilla_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/1394987613106208859
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Can you describe your current flow with code and/or links to APIs you're using?
I mean that /elements/sessions endpoint is internal/private so you shoudn't be using/relying on that at all
Sorry, I really don't have the time to read those extensive diagrams
sorry I have just seen your last
Overall I'm super confused about your integration, what exactly it is you're trying to do/build and where the problems lie. Seems like you're using the customer portal which doesn't really make sense I think in your context?
We have a customer portal which allows end users to may payments into there accounts.
We gather there payment method data using a stripe elements session
Ah, ok. My bad I interpreted that as Stripe's customer portal
As I said, you should stop referencing that API/endpoint. It's internal, not public. Likelihood is you're using the Payment Element which uses that endpoint under the hood
at the point of the customer confirming they wish to make the payment we create the master record of the payment in our system on our server side and then create the payment intent. the payment intetnt is then passed back to our customer portal so that the customer portal can sent the call to complete the payment intent with the elements session
What is the problem you're having today?
agreed the elements session is collecting this data
I am keen to know if my client side customer portal and push the details of the element sesion to my server side so that the server side can make the confirmation call on the payment intent.
OK, let's take a step back. What code do you use in your portal to initialise the Payment Element? Is this done before you create an intent with us?
Yes, via a Confirmation Token: https://docs.stripe.com/payments/finalize-payments-on-the-server?platform=web&type=payment
Yes the element session is created prior to the payment intent.
Cheers I will give this a read. Thanks