#rhy0295

1 messages · Page 1 of 1 (latest)

scenic geodeBOT
fringe hound
#

Can you elaborate what you are seeing (that integration has been deprecated)?

scenic geodeBOT
wicked flicker
torpid oxide
#

That is totally unrelated to Checkout. If you want to use Checkout and integrate with third-party shipping providers then that is not supports right now on the actual payment page

#

You'd need to collect shipping info before you create session and generate the shipping rates via a third-party API

wicked flicker
torpid oxide
#

Hmm, Elements is good fit here as it allows full control of cart/checkout experience. However it doesn't support a lot of the ancillary APIs that Checkout does (like Prices/line items, shipping, etc).

plucky carbon
#

@wicked flicker what's up?

wicked flicker
#

hi I have more questions to ask re this thread

#

wasn't able to respond

wicked flicker
#

and what method are the other websites using then? because it seems to allow for exactly that using stripe (custom live shipping prices on demand)

plucky carbon
# wicked flicker I just need the basic checkout process, but want to be able to get custom carrie...

no, Checkout doesn't support per-country shipping rates; you can pass various shipping options that the customer can select between on the hosted page https://stripe.com/docs/payments/during-payment/charge-shipping?payment-ui=checkout&dashboard-or-api=api

to be clear, you can figure out where the customer is before opening Checkout, calculate a single ShippingRate and pass that when creating the CheckoutSession(which is what ynnoj was describing); see the docs above

If not, what method would you recommend?
probably a bespoke integration using Elements instead of Checkout where you can control the UI and directly create a PaymentIntent for your final amount.
and what method are the other websites using then?
I don't know. I assume they use bespoke Elements pages!