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

PHP Build a Simple PHP Application Integrating with PayPal Configuring Tax and Shipping Rates

Robert Bullen
Robert Bullen
8,022 Points

Paypal

Any way to get demo paypal code etc, to put into our site, as I don't want to create an account for this test site that we're creating.

2 Answers

Andrew McCormick
Andrew McCormick
17,730 Points

yes. PayPal sandbox. https://developer.paypal.com/ https://developer.paypal.com/docs/classic/lifecycle/sb_about-accounts/ Sign up for a developer account. Then create a new sandbox.paypal account that will act as the business account and a sandbox.paypal account that will act as a personal account. You can stuff as much fake money as you need in the accounts, as well as test with paying with credit cards, etc. Rather than POST forms to paypal.com you will be posting to sandbox.paypal.com

Hello,

You can Google for some type of code that others have created for PayPal or just simply look at the documentation on the PayPal API for examples on how to use their gateway. I don't use PayPal and use a third-party merchant gateway so I don't really mess with the code that makes PayPal work. I just remember looking at examples when shopping for a merchant gateway for my company. Hope this helps!

Cheers!