#RzSlim
1 messages · Page 1 of 1 (latest)
hello !
Thx for the prompt reply,
yeah, creating a checkout session, but there is no user information to the checkout
it's an anyonymous checkout in other words
So i am collecting shipping information but i dont have a hardcore custom implementation for the shipping price
i could always have a cloud function listen for a webhook event and then update the session's shipping options but would that even update the checkout session in real -time ?
i've struggled with this in the past for a client integration and had to collect the user's location prior to initiate the checkout and passing that information to a shipping api to generate a price, and passing that over when creating the session, but the client does not have the funds for this implementation , so i'm looking for a quicker alternative
Yeah unfortuantely there's no dynamic shipping rate functionality with Checkout currently
This is all we support: https://stripe.com/docs/payments/during-payment/charge-shipping?payment-ui=checkout&dashboard-or-api=api
This guide covers setting shipping rates for Stripe Payment Links, Checkout, and Elements.
You would need at the very minimum your own form to collect shipping address if you want to handle shipping rates dymanically like that
However depending on how complicated your shipping logic is #1126968013044846664 message might just work
but lets say i'm on the checkout page,
are there webhooks that i can listen to for adress change on the checkout page ?
and so immediately on change run a callback event ?
Yeah. See all methods available here: https://stripe.com/docs/api/checkout/sessions/object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You can expire an active one
That's about it
Darn , okay
hey i swear i've seen checkout process that look identical to stripe, but that are multi-step and allow adress collection
i know it's not stripe related but maybe you've heard this before ?
You can build that yourself with Stripe on your own checkout page
Using the address element and payment element
Ok right on so stripe elements would be the quickest secondary option
i really appreciate your help, thanks plenty !
Sure thing. You could use the following links:
https://stripe.com/docs/elements/address-element/collect-addresses
https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
and this works in checkout session ?
oh, no elements
ok awesone, yes i will look into those
thanks for the links, i will save those right away
No problem