#TLShadow-checkout
1 messages ยท Page 1 of 1 (latest)
hey hello ๐
just as alittle more information we ware using the php sdk, and have an own middleware plattform, which prepares the checkout session
AFAIK it's not possible to pass in the credit card nb
ok so this would require ie stripe JS ... which would bypass our plattform completly
for the name do you mean to the Checkout Session Billing Address?
ok so this would require ie stripe JS ... which would bypass our plattform completly
I don't really follow
ok lets restart for a moment
following construct is given .. we use connected accounts to handle the payments .. we developted a middle ware plattform using stripe php sdk .. and a plugin on shop side ...
Plugin collects data and asks our plattform to do a payment on behalf of the connected account .. our plattform collects all informations, calculates the fee, and sens a checkout session to stripe. and we direct the customer to stripe checkout process.
thats the current/given situation.
so now there was the question whether we can collect the information that is asked during checkout and provide it in the session creation .. so the customer wouldn't feel like beeing linked out to the stripe checkout or at least as far as we can provide given data.
as example giropay only asks for a name, which we already have due to shipping address inofmraiton on the plugin side, but i haven't found a way to provide that information to the checkout process .. only found email so far .. and few arbitary fields in the stipe docs (country for klarna)
Hi there ๐ apologies for the delay. I'm jumping in to lend a hand, please bear with me a moment while I catch up on the context here.
take your time its alot to take in, and thanks for helping out ๐
Unfortunately, in general you can't prefill checkout session expect certain cases, like prefill card details with an previous used card or if you are using customer object like mentioned below:
https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout#handling-existing-customers
ok so we would have to rebuild the whole process based on paymentIntents, or is the only solution so far js sdk ? (which also handles card validation, but would kinda bypass our plattform)
Yes and you can use just Stripe Elements to handle payments after that in your frontend
https://stripe.com/docs/payments/elements
How does Stripe.js solve your use case? What are you actually trying to solve here that Checkout can't?
well stripe can bei ntegrated on shop/plugin site die gather the needed information so the real endcustomer doesn't have to leave the plattform he is on because this might be preceived as insecure
the request was to prevent redirecting, the the real end customer never hast to leave the shop
this would be true for stripe.js .. though our plattform currently needs to know about the checkout .. which woudl be bypassed and make it hard to reconstruct the whole money flow on our side.
though our plattform currently needs to know about the checkout .. which woudl be bypassed and make it hard to reconstruct the whole money flow on our side.
I don't really understand what you're saying here. Connect works with non-Checkout flows, too
yeah .. thats not the issue
we do have a own plattform with backend and so on
to provide specific information to the customer
so we kinda have plugin <-> our backend <-> stripe as construct
stripe js would take our backend out, since it would work with connected accounts but would know about our plattform since it directly works with stripe
so we either have the checkout or itnegrated but now plattform which both is kinda problematic
Sorry I'm really struggling to understand the underlying issue you're facing
You asked about pre-filling customer data/fields in Checkout, is this related?
this was the initial question yes
since that is not possible the only way to achive it would be stripe.js
to achive not leaving the shop
anyhow don#t worry the core question has already been answered ๐
thanks alto for the support
let me know if you need any more help
will do thanks ๐
and for implementing Stripe Elements you could take a look at this awsome guide https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements