This is my first blog so start with a common assignment that every web developer has to go through. This is about paypal, there are many methods to integrate payapal on you site but in simple language it can be devided into two ways :
1. Redirect your user to paypal's site and rely on paypal to send you response(Very simple and common)
2. Sometimes client doesn't want their user to leave their site for payment so for that we have to integrate paypal api that allows user to use their credit cards on your own site, no need to redirect them to paypal's site, this method of payment through paypal is called Do Direct payment this blog discuss about Do Direct method, no code involved this is a simple step by step guide to integrate paypal to your site, programming language and technology can be any.
Do Direct Payment : Used for accepting credit cards etc at the website payment checkout process, we do not need to redirect user on PayPal page by using this method.
Steps Involved in Implementation and Testing :
Step 1. Download an SDK from https://developer.paypal.com/ here you will get a sample implementation and all the required reference dlls.
Step 2. You need to create an account on https://developer.paypal.com/ , after logging in your account go to Dashboard, there you will see a menu titled as
“Sandbox” , in the submenu of this go to “Accounts” and click on the
Create Account button.
Step 3. Follow the process of http://sandbox.paypal.com/ and create an account there you can provide test details in every required field and enter an amount which you want to deposite in your test account.
Step 4. Now come back to developer site (https://developer.paypal.com/) and click on your fresh created linked Sandbox account, this will open a submenu, now click on “Profile” link and update your account to Sandbox pro.
Step 5. After successful updating go to sandbox account, click on Profile then navigate to API access and view your API signature.
That’s all !! From there you can get your Api username, password and signature , copy-paste these in the configuration settings of sdk and you can successfully test the transaction by using test credit card number.
For e.g.
Card Type : Visa
Card Number: 4111111111111124
No comments:
Post a Comment