Paypal Gateway Integration:
Step 1: Goto developer.paypal.com
Step 2: Signup for an account and I use the following information.
user: jbl.training@gmail.com
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)
Saller acc: jbltr1_1268724741_biz@gmail.com
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
Step 6: Now Download sample application from paypal: https://cms.paypal.com/cms_content/US/en_US/files/developer/PP_PHP_NVP_Samples.zip
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]
You will redirect to your site from paypal. By example, http://localhost/PP_PHP_NVP_Samples/ReviewOrder.php?currencyCodeType=USD&paymentType=Sale&token=EC-9FX13198W32250845&PayerID=JPQWEXV7JKM7C
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
Copy Right Violated !! You copy it from my site:
ReplyDeletehttp://shopno-dinga.com/myblog/?p=313
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