Integrating Paypal into my website (built using node.js) so members can pay a one off subscription?

s_bruno1
New Community Member

Hi all, wondering if you can point me in the right direction?

 

I have built a website using node.js. It's a course website consisting of 100+ lectures and I want to allow customers to pay a one off membership fee to access to full course. 

 

Currenrlty my user schema is:

 

var UserSchema = new mongoose.Schema({
username: String,
password: String,
email: String,
member: Boolean(false),
});

When a user signs up, the membership variable is set automatically to false. 

 

I want to be able to give the option for a user to sign up and then to pay for membership. They will then be brought to a membership payment page and are able to pay using Paypal. Then, somehow I need to be notified of a successful payment so that I can change the 'memership' variable to 'true'.

 

I will then use this variable to give them access to a route that has all the videos.

 

Is this possible? This is my first attempt of trying to intergrate payments into my website. The price I'm asking for the course if £29. 

 

Kind regards,


s_bruno1

 

Login to Me Too
1 REPLY 1

Quandary
Advisor
Advisor

You may want to redirect your question to the Developer forum.   And you should also check out the Merchant Tech Support community.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.