#Hi there guys!
I am in desperate need of help with my current project. I’ve been trying to Google and find a solution to this problem all day today but nothing seems to be of help.
What I am having trouble with is integrating Braintree payments in the checkout page of my website.
Basically, I have a page with 6 different pricing options. Once an option is selected (e.g. the “Buy Now” button is clicked), the app redirects to “checkout.html” template. The “checkout.html” template contains a form that has the pricing option pre-selected. All that needs to be done is to either checkout using credit card details or PayPal payment.
I have found this: https://github.com/NickTomlin/braintree-meteor-example to be somewhat helpful.
I just copied the server.js contents, and it seems to work fine. Although I do understand generating tokens and everything, I just can’t get my head around passing data from the template and actually checking out using that data.
What I am looking for is the most bare bones code to get this working that is simple to understand.
I hope someone can help me.
P.S.: I have looked into Stripe and other options, but I have to have credit card as well as PayPal payment options integrated.