#rhy0295
1 messages · Page 1 of 1 (latest)
Can you elaborate what you are seeing (that integration has been deprecated)?
for example here it says 'As of November 2019, Stripe deprecated its Orders API and is no longer accepting new customers.'
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
So does that mean I would have to use Stripe Elements? And would the method be to assign prices to each country location, and use Elements to capture the location on the first page of checkout, then on the next page it will take the price for the given location and add it to the product cost? And on this page it also shows the payment information collection bit
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).
I just need the basic checkout process, but want to be able to get custom carrier/shipping prices based on location - If calling a third party api here is not possible, an alternative could be to specify beforehand the shipping prices for each country, but does Checkout allow for that? If not, what method would you recommend?
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)
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!