Paypal Payment Gateway Integration in PHP PayPal is an American international e-commerce business, allowing payments and money transfers to be made through the Internet. PayPal is a very popular payment gateway for every web project. PayPal has two environments such as Sandbox and Real Time. Sandbox environment help developers to do their test transaction before the project go live. The real Time environment is used after project live. Purpose of Payment Gateways:Basically, A payment gateway allows your online store to accept credit card payments from customers. Payment gateways cost money and charge per transactions, and there are a lot of them to choose from. Picking the right gateway can help save you money and keep your business running smoothly. Once you've chosen your payment gateway, integrating it into your online store software is a snap. Let's move on to the next main step in which we will study about Paypal Payment Gateway Integration in PHP. The required resources for PayPal payment gateway integration in PHP First of all, we are going to collect required resources. which will be used to integrate PayPal payment gateway. 1. A working live web page address. 2. A working web server or hosting. 3. A working internet connection. 4. A Web browser to browse web address. Mozilla Firefox is our recommended. 5. A PayPay account to test PHP PayPal Payment Gateway Integration. 6. Basic knowledge of PHP web development language. 7. Basic knowledge of HTML.
http://www.problab.com/paypal-payment-gateway-integration-in-php/
Let's start step by step Integration of PayPal Payment Gateway using PHP. Step 1 : Setup PayPal main account. First of all, we need a main account of PayPal. It will use to test PayPal payment gateway using php . So First of all, you have to go on PayPal official website. And there, you have to create an account (Personal account). Just create an account using your personal details. You do not need to enter bank, PAN etc details. This PayPal main account will use to create sandbox seller and buyer accounts. For example, we have created main@example.com. This is email id of main PayPal account. Have you done? yes. Lets move to step 2. Step 2: Set up PayPal sandbox seller and buyer account Now we will create two test account. First will be for seller and second for buyer. What is paypal sandbox: PayPal Sandbox has developed mainly for web developer. Sandbox is the testing environment of PayPal. It is working as real account. but it is only for testing. All the balance, transaction etc will be imaginary. Let we create two PayPal sandbox accounts to make payment. First account will for seller and second will be for buyer. Let we start creating sandbox accounts. First of all, you have to go on PayPal main website. If you are auto logged in. Then you do not need to log in again. Otherwise you have to Log in there using email id and password of main account. We have created main account in step 1. After that go to https://developer.paypal.com/webapps/developer/applications/accou nts This will auto logged in using your main account details. if not, You have to Log in using main account details. This is development environment for PayPal payment gateway integration.
Now, You have to click on Create Account. You can locate this button on top right side. Now you have to select your country. Then you have to choose one Account type Personal (buyer account) or Business (merchant account). Let me explain what is Personal (buyer account) and Business (merchant account). • Select Business (merchant account). if this is seller account. • Select Personal (buyer account). if this is buyer account. You need to create both accounts. So first create a Business (merchant account) account. Then you can create Personal (buyer account) account. In first time, suppose we are creating Business (merchant account) account. Select Business (merchant account) then enter any email id and password. It will be use to log in into sandbox seller account. So you must note down into a txt file. Now You have to fill First name, Last name, PayPal balance etc. which you like better. These does not matter. You only need to write down email id and password. Also you have to write PayPal balance. You can write 1000$. Suppose we have create a Business account with email id seller@example.com. it will use to receive payment from buyer. Same as Business (merchant account), you can create a Personal (buyer account) account. suppose we have create buyer@exaple.com. It will use to pay for products. Now you have 3 accounts email id and password. Main account, seller account and buyer account. Now, You can log in using seller or buyer account using PayPal sandbox website. You may use more than one browser to open both account at same time. Suppose, you are logged in as seller account into PayPal sandbox account. You can track transaction, received money etc. It will act like real seller account. And same for buyer account. Step 3 : Build web page and make payment using buyer account http://www.problab.com/paypal-payment-gateway-integration-in-php/
In this step, we will develop a web page to display product. Now you have to change some values in this form. You have to change seller email id, return web address etc. Then you can access web page using web address. Now you have to click on buy. you will land on sandbox website. Here we can log in using sandbox buyer email id and password. Then you can make payment. You have almost done. you have setup PayPal payment gateway integration in php. This is starter guide for php web developer. Now we need to enable auto redirect. Step 4 : Redirect url to success page from PayPal sandbox website Till yet, we have created 3 PayPal accounts. We have developed a form to display product. We have paid using PayPal buyer email id. Now, We have to setup redirect on success page from PayPal sandbox website. To do so. you have to go on https://www.sandbox.paypal.com/ . And this time log in using seller account. After that, you can go to profile > my selling tools. After that you can click on update of Website preferences. And you can select ON of Auto return. And you need to type return URL. And you can turn payment data transfer to ON. Other things, you can update according needs. That is only. Now PayPal will redirect to inserted URL after successfully payment. This is simple PayPal payment gateway integration using PHP web development language. However we have not used any PHP code. But you can add them according requirements. Now suppose, you want to send and return invoice id. Then you can add an input type with name invoice and value. After that on redirect url, you will get same invoice id and value. After that you can apply further logic on return data.
I hope that you have understood basics of PayPal Payment Gateway Integration in php. Now you can implement simple PayPal Payment Gateway in your website. If you are unable or stuck between any step, you can take help from Problab Technologies. To know more details about our payment integration services, you may contact us or visit our office.
http://www.problab.com/paypal-payment-gateway-integration-in-php/