Step1 - Go to https://developer.paypal.com/ 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

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
"https://www.sandbox.paypal.com/in/webapps/mpp/home"
<form
action="https://www.sandbox.paypal.com/cgi-bin/webscr"
method="post">
<input
type="hidden" name="cmd" value="_cart">
<input
type="hidden" name="business"
value="testneeraj@techwave.com">
<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="jdoe@zyzzyu.com">
<input
type="hidden" name="return"
value="http://youwesite.com/success.php">
<input
type="image" name="submit" border="0"
src="https://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif"
alt="PayPal
- The safer, easier way to pay online">
</form>
</form>
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
print_r($_POST);
ALL response from paypal and save you database accouding tran_id
happy happy any question you can comment directly
nice post, it's very very helpful. thanks.
ReplyDeleteHi himansu,
ReplyDeletethanks,if you have any doubt you can ask by commnets
thanks
Bikash ranjan