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.


demo download.

Step 1

Create a Paypal Sandbox account at

Step 2

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


Step 3

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




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


demo download.