#sb

1 messages · Page 1 of 1 (latest)

wintry phoenixBOT
fossil kindle
#

Hi 👋

No that currently is not something that is available.

#

I can add a feature request for it though

buoyant verge
#

Yes that would be great!

fossil kindle
#

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?

buoyant verge
#

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

fossil kindle
#

Ah.... okay I can request that but I can't make any promises on if/when it might get considered

buoyant verge
#

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

fossil kindle
#

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

buoyant verge
#

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

fossil kindle
#

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

buoyant verge
#

for sure, it's really useful to have the prebuilt interface.. but that's mainly because I'm so horrible at styling.

buoyant verge
#

or can I straight up rip out your front end

#

and send the requests to your server myself

fossil kindle
#

There are plenty of tools besides the Stripe Checkout to collect payment information

#

For example

buoyant verge
#

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

fossil kindle
#

Currently using our tools like the Payment Element are the only way you would have that level of flexibility

buoyant verge
#

Great I think I'll use this. Although obviously I wish I didn't have to because the checkout session api is so simple to use

#

but maybe in the future I can go back to that

#

but thank you for the help