In this post I am explaining a easy steps to how to integrate Paypal Payment Gateway in PHP and work with Paypal Sandbox test accounts for payment gateway integration and sending arguments while click buy now button.

In order to receive PayPal payments, you must have a PayPal account, registered with a valid email address. If you do not have an account, you can easily register.

paypal1

Download      Demo

Step 1

Create a Paypal Sandbox account at https://developer.paypal.com/

Step 2

Now create test accounts for payment system. Take a look at Sandbox menu left-side top Sandbox->Test Accounts

paypal2

Step 3

Bellow is created two accounts Buyer (personal) and Seller (merchant/business)

paypal3

index.php

Payment-success.php

After the successfull payment you will redirected to the payment-success.php page for success message.

cancel.php

Download      Demo