stripe-archive / accept-a-card-payment

Learn how to accept a basic card payment on web, iOS, Android

Home Page:https://stripe.com/docs/payments/accept-a-payment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node implementation not working

bobrundle opened this issue · comments

The node implementation in the without hooks code set is not working.

To get it working the following needs to be added near the top of server.js

var bodyParser = require('body-parser');
app.use(bodyParser.json());

@bobrundle thanks for flagging!

@bobrundle We're using express's built in middleware so it should already work with this line:

app.use(express.json());

However, that line was missing before I merged this commit a couple days ago so depending on when you pulled it may have been missing! Closing this issue for now but let me know if that doesn't resolve it. Thanks for reporting