Monday, March 4, 2013

How to Integrate a PayPal Sandbox Account With PHP


1. Right-click the PHP file you want to use to connect to the Paypal sandbox, then click 'Open With.' Double-click the PHP editor to open the code.
2. Open a Web browser window. Navigate to the Paypal sandbox code generator. Select 'PHP' from the 'Shopping Cart Programming Language.'
3. Type the information for the return page, the payment type and currency code. Click 'Next.' The first block of code is for any HTML files you may use in your code. Click 'Next' to skip this code.
4. Copy and paste the code shown in the window to your PHP file opened in step one. Click 'Next' again, and copy and paste the second section of code to your PHP files.
5. Click the 'Save' button in your PHP editor. Upload the code to your test server, and run the Paypal PHP code on the test Web server.

No comments:

Post a Comment