jQuery Checkout Backend (Stripe, Braintree)

jQuery Checkout Backend (Stripe, Braintree)
0.0 0

#1

Good afternoon,

I would like some help working on this code, written in jQuery, that lets you select your preferred payment method and then uses that method. The main code is written in php, then the javascript is loaded with an external .js file, towards the bottom of the page. When the checkout button is submitted, omnipay is used to store data in the database and create customer information on each platform. Everything in php works, the javascript works, so-so, but has some bugs in it that need squashed.

I am looking for someone to attempt to help me in private message, I don’t really want to post my code in the forum publicly. I don’t know if anyone will be able to help me, just examining my javascript code, without seeing my entire php backend. I don’t want to bother anyone with a bunch of code review and error fixes but I’m not a javascript writer and I know my code is sloppy and needs to be cleaned up.

Anyways, if anyone would like to take on the challenge, I may be able to offer compensation if you so desire, if you are able to help me fix my javascript and help me understand why the errors are happening.

Thanks for letting me post on your forum.


#2

Firstly, welcome to the forums.

While we are primarily here to help people with their Free Code Camp progress, we are open to people on other paths, too. Some of what you are asking is pretty trivial in the Free Code Camp context, so you might find that if you’re not getting the instruction and material you need in your current studies, the FCC curriculum will really help you get started. At a modest guess I’d say investing a 4-5 hours working through the curriculum here will really pay off. You can find the curriculum at https://freecodecamp.org.

With your current questions, we don’t have enough context to know what you already know or don’t know, so it is impossible to guide you without just telling you the answer (which we won’t do).

It is pretty typical on here for people to share a codepen / jsfiddle example of what they have tried so that anyone helping has more of an idea of what help is actually helpful.

Please provide some example of what you’ve tried and I’m sure you’ll get more help.

Happy coding :slight_smile: