#Physicsbuddy

1 messages · Page 1 of 1 (latest)

scenic impBOT
wicked ferry
inner summit
#

ok, and how can i make the payment amount DYNAMIC in stripe link pls

#

like i want the checkout to display the total amount of the cart

#

so not like hardcoded from stripe

#

I WUD REALLY APPRECIATE UR HELP!

wicked ferry
#

Hmm, before ever creating the Checkout Session in your backend, you can calculate the amount from your cart and pass it as the parameter

#

Look at cart in frontend -> Send to backend with the total amount -> Create a Checkout Session with that amount -> redirect customer in frontend to the created Checkout Session

inner summit
#

No i don't want to have backend i don't know backend i want just want to link to stripe but the amount being that of the cart pls