Better Programming

Advice for programmers.

Member-only story

A Stripe API Tutorial With React and Node.js

Ignacio Nicolas Aguirre
Better Programming
Published in
5 min readAug 17, 2020

--

Requirements:

  • Basic knowledge of Javascript, React and Node.js
  • Basic knowledge of how information moves from client to server

The Purpose of This Article

I’m trying to make other people’s coding journeys easier than mine by making tutorials of what I’ve learned. I recently had to integrate payments to monetize my website, so hope you can use what I learned!

I learned how to code by building my financial education business. Check it out if you’re interested: www.snowballfinances.com.

Please send me an email at inaguirre96@gmail.com if you get stuck, or post in the comments below!

What You’ll Learn

  • Use the Stripe client library in React to create an access token.
  • Set up Stripe endpoint on a Node.js server to receive the token, process the payment, and send a response.

What You’ll Need

  • A Stripe account created at www.stripe.com. Write down your Stripe Public and Secret TEST Keys. You’ll have to get your account approved if you want to start selling online (deployment

--

--