Saturday, March 20, 2010

Paypal Integration - step by step guide

Paypal Gateway Integration:
Step 1: Goto developer.paypal.com
Step 2: Signup for an account and I use the following information.
pass: trainingcenter
you have to confirm your email address by click the link in mail send by paypal.
Childhood best fr: karamba
Favorite Restaurent: piza
My primary payment solution: Website Payments Standard
Create
Step 3: Create Business Account (I use Preconfigured link)
Pass: 268724681
Country:
United States
Business Name:
None
Credit Card:
Visa   4109533352958088
Exp Date:  3/2015
Bank Account:
Checking (Confirmed)
Routing Number: 325272063
Bank Account Number: 634389161585402
Balance:
0.00 USD
Email:
Confirmed
Step 4: Create Personal Account (I use Preconfigured link)
Buyer acc: person_1268889297_per@gmail.com
Pass: 268889126
Country:
United States
Business Name:
Aminul islam’s Test Store
Credit Card:
None
Bank Account:
Checking (Confirmed)
Routing Number: 325272063
Bank Account Number: 870793346219927
Balance:
8888.00 USD (Max: 9999)
Email:
Confirmed
Step 5: Click API Credentials Link from left menu. API created automatically and you just need to use those. For me here are the info:
Test Account: jbltr1_1268724741_biz@gmail.com Created: Mar. 16, 2010 00:32:27 PDT
API Username: jbltr1_1268724741_biz_api1.gmail.com
Password: 1268724747
Signature: AFcWxV21C7fd0v3bYYYRCpSSRl31AF95j1hyudD2R8r7TVOp6tyt4smZ
Extract
Step 7: open PP_PHP_NVP_Samples/constants.php and set up API Credentials Line no: 23, 33, 39.
Step 8: Run http://localhost/PP_PHP_NVP_Samples and click “ExpressCheckout - Sale” Link
Enter your personal account details as:
Pass: 268889126
[Note: Make sure you are signed in at paypal.developer.com For me Login Info: jbl.training@gmail.com / trainingcenter]
Click “Buy” button
And finally http://localhost/PP_PHP_NVP_Samples/DoExpressCheckoutPayment.php page shows you Confirmation of your transaction
When come back from paypal (after successful transaction)it comes to
Here LastTakewayId is my variable added paypal/ReviewOrder.php page at $returnURL=urlencode($url.’/ReviewOrder.php?currencyCodeType=’.$currencyCodeType.’&paymentType=’.$paymentType.’&LastTakewayId=’.$_SESSION['LastTakewayId']);
TIPS:
1. Have a look Test Email from the left menu
2. Maximum time I login in an account at developer.paypal.com and use another account’s email and pass while transaction (during purchase)

Courtesy :
Md. Aminul Islam

2 comments:

  1. Copy Right Violated !! You copy it from my site:
    http://shopno-dinga.com/myblog/?p=313

    ReplyDelete
  2. no it is not copy but i gave credit to you by mentioning your name at the end. so please dont say like this ok...

    ReplyDelete

Followers