paypal / PayPal-node-SDK

node.js SDK for PayPal RESTful APIs
Other
1.28k stars 451 forks source link

disable user subscription from the database if he didn't pay #449

Open rachidelaid opened 4 years ago

rachidelaid commented 4 years ago

General information

Issue description

I have created a web-app using node.js/express.js/vue.js after the user subscribes to my app with PayPal, I store all the information in my database and assign to him a boolean (isSubed = true) so he can use the app. but I want to change that boolean to false if he didn't pay next month.

is there a way to do that without Webhooks? if I have to use Webhooks. can you please give an example?

this is my first time using PayPal subscription system .

ahmaxed commented 4 years ago

add a route that displays the data in the reqest. use the webhook simulator to call that route with the specified webhook. more info: https://developer.paypal.com/developer/webhooksSimulator/ best of luck