#Amazing Parent from Brown Sea

1 messages · Page 1 of 1 (latest)

stiff rainBOT
balmy tulip
#

Hi! Let me help you with this.

#

Normally, a checkout session must be created on the backend. If you use one of our SDKs, it will suggest the correct format. What backend language are u using?

tulip dock
#

I'm using Vue as front and node as back, i'm trying to make the api call to the endpoint with fetch

balmy tulip
tulip dock
#

Ok but if i want to make the api call from vue it's a bad thing? Actually i installed the vue stripe module for the checkout button also

balmy tulip
#

Yes. You need to set the price on the backend, as it is safer. Otherwise, a malicious customer could temper with the frontend call, and send an arbitrary amount.

#

Stripe needs to be used both on frontend and on the backend, as each has it's own responsibilities. Backend creates the PaymentIntent/Checkout Session and frontend collects the Payment Method.

tulip dock
#

so i have to install the stripe cli on the backend?

balmy tulip
#

That's different. Only if you want to test your webhook endpoints.

tulip dock
#

the module to require in the backend is stripejs?

balmy tulip
tulip dock
#

ah ok thanks

#

i was looking for this repo

balmy tulip
tulip dock
#

Ok thanks

balmy tulip
#

Happy to help. Let me know if you have any other questions.

thick bridge
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!