user8317490
user8317490

Reputation:

Can I implement Stripe checkout in React without my own backend server?

I have a React frontend deployed on Netlify. I want to implement a simple payment system where user can enter the amount they want and pay using Stripe checkout or even PayPal. I wanted to know If this is possible without paying for a separate backend. Or is there any other self hosted payment gateway you can suggest?

thanks! :)

Upvotes: 6

Views: 10603

Answers (4)

Caleb Koch
Caleb Koch

Reputation: 874

Stripe now has a solution called Stripe Payment Links. It's a client-only solution... in fact it requires no code!

Upvotes: 3

Zhi Kai
Zhi Kai

Reputation: 1587

If you don't want to do server-sided development, then Stripe Checkout (client-only integration) is the way to go. Everything you need can be done on Stripe dashboard.

Upvotes: 2

cjav_dev
cjav_dev

Reputation: 3105

Technically, you can use client-only Stripe Checkout, however it's not the recommended path: https://stripe.com/docs/payments/checkout/client

Client-only is not recommended because it lacks many of the features made possible with a client-server integration. Furthermore, the client-only integration is not currently (as of this post) receiving new features or upgrades.

Upvotes: 3

mehowthe
mehowthe

Reputation: 841

As you can see on Stripe docs The Stripe API uses API keys to authenticate requests. - so this means that you need a secure way to integrate with them, without exposing those keys.

So the best way would be to use some serverless backend (FaaS) for that, like Amazon Lambda, GCP Cloud Functions etc.

Here's a good article, how to integrate Stripe with webtask.io, which should be pretty simple to use

Upvotes: 1

Related Questions