#sb
1 messages · Page 1 of 1 (latest)
Hi 👋
No that currently is not something that is available.
I can add a feature request for it though
Yes that would be great!
What are the factors you are trying to consider? In all likelihood we would not simply accept a callback function because running user submitted code would be insecure.
Can you describe the elements you would want to take into account?
Just at checkout, I’d like to be able to query a shipping companies api, passing the customers address and getting a real-time quote for shipping
Ah.... okay I can request that but I can't make any promises on if/when it might get considered
No of course, but it would be nice because it seems I’ll have to implement my own checkout now or do an intermediate step beforehand or just put a flat rate
Right, yeah I get that
But I'll definitely add it as I know there is interest in figuring out how we can expand the shipping costs utility
Oh cool, glad to hear that! Also can I ask is it possible to build my own checkout and pass the parameters onto stripe? Or am I limited to using only your checkout interface
You can always build your own checkout gateway and use entirely server-side APIs to interact with Stripe.
It's more work on your end but it does allow more flexibility
You can even use Stripe on the front-end to safely collect payment method information and then handle everything else yourself
for sure, it's really useful to have the prebuilt interface.. but that's mainly because I'm so horrible at styling.
Do you mean use stripe and then webhook the stuff back to me?
or can I straight up rip out your front end
and send the requests to your server myself
There are plenty of tools besides the Stripe Checkout to collect payment information
You can embed the Payment Element in your own site: https://stripe.com/docs/payments/payment-element
For example
Oh okay, this might be what I'm looking for then
because I can just have my shipping area on the same page as a stripe payment element
and do the api calls to UPS or whatever
Currently using our tools like the Payment Element are the only way you would have that level of flexibility