Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


paypal button not working

Hi guys,

I've been trying to implement a paypal button on my page.

It is a subscription button with a variable price.

it can be found on http://easynimbus.com/payment.php

somehow the paypal page is not loading.. it simply loads the confirmation page.

What did i do wrong?

1 Answer

Randy Hoyt
Randy Hoyt
Treehouse Guest Teacher

Take a look at the PayPal example code. The problem is that the action attribute on the form points to payment.php instead of to PayPal. Right now, when someone clicks submit, the form goes straight to payment.php, which looks like it is reloading the page. You want that action attribute to point to PayPal's servers, and they should be able to provide the code for that. (I cover a bit how to set up PayPal buttons for the PayPal Shopping Cart in my tutorials: Integrating With PayPal.

Does that help?