Thursday, May 23, 2013

how to create sandbox paypal account for testing sandbox buyer and business in website integration php

Step1 - Go to sign up for business account for testing integration

Step2- After create developer account paypal has been  sent confirmation mail activation link to your mail id
Step 3- click the activation link and login to developer account

create new business account/buyer account 

follow these process to create your sandbox account

after completed you sandbox business and buyer account then submit you form
to paypal on you website (integration with website example)

point1: remember dont logout your developer account if logout first login then send your cart because it sandbox it only acceptable for testing business login 
<form action="" method="post"> 
 <input type="hidden" name="cmd" value="_cart">  
 <input type="hidden" name="business" value="">   
 <input type="hidden" name="item_name" value="hat">   
 <input type="hidden" name="item_number" value="123">   
 <input type="hidden" name="amount" value="15.00">   
 <input type="hidden" name="first_name" value="John”> 
 <input type="hidden" name="last_name" value="Doe"> 
 <input type="hidden" name="address1" value="9 Elm Street">  
 <input type="hidden" name="address2" value="Apt 5"> 
 <input type="hidden" name="city" value="Berwyn">   
 <input type="hidden" name="state" value="PA">   
 <input type="hidden" name="zip" value="19312">   
 <input type="hidden" name="night_phone_a" value="610">   
 <input type="hidden" name="night_phone_b" value="555">   
 <input type="hidden" name="night_phone_c" value="1234">  
 <input type="hidden" name="email" value=""> 
 <input type="hidden" name="return" value=""> 
 <input type="image" name="submit" border="0"   

 alt="PayPal - The safer, easier way to pay online"> 
when submit this form it goes to paypal sandbox login your buyer login info to payment for tesitng after it return to you return rul.
then lastly  talk about payment invoice with success.php
after payment 

ALL response from paypal and save you database accouding tran_id 

happy happy any question you can comment directly


  1. nice post, it's very very helpful. thanks.

  2. Hi himansu,
    thanks,if you have any doubt you can ask by commnets

    Bikash ranjan