Hello friends, today I will show you paypal pro integration. PayPal is an American international e-commerce business allowing the faster, safer way to send money, make an online payment. PayPal gives us multiple way for website to integrate it and transfer money from one account to another. Mainly paypal has two types of integration process hosted checkout integration and integrating checkout integration. In hosted checkout integration(Paypal Pro) all the payment related steps are done in your site. But for integrating checkout integration(paypal standard) you will go to paypal site and give your account related information and pay your payment. In this link I develop Paypal standard payment integration using PHP. Now I build paypal pro integration script using PHP.



At first I develop the form where user give all information. I did not validate all form fields but when you use it for your website please validate all form fields then process in next step. I name it index.php

After click submit, using ajax post request all the form data will send to send.php. In send.php page I silently send all the value to paypal site using cURL. But here I need to put my paypal pro cardinal details like username, password, signature. When you create paypal pro account paypal will generate thin things for you. You can use this link also for creating paypal pro account. https://www.paypal.com/webapps/mpp/paypal-payments-pro or http://stackoverflow.com/questions/7820298/how-to-create-paypal-website-payment-pro-sandbox-account

The above code will send all your information to paypal, make your payment done and send a payment status information to my site. I check the status information, if it is ok then save it to database and also you can send mail to your user. After successful payment process I redirect the user to success page. If there is some error I show the error message to user.

Now make success.php page. Here i just simply show a message, but for you, you can show any thing you want.

Demo

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Paypal pro integration script using PHP
Tagged on:     
  • photos gros penis

    Good info. Lucky me I discovered your blog by accident.
    I’ve book-marked it for later!

  • monika

    I was able to find good information from your blog posts.

  • poojali

    Hello Sir,

    I want the same functionality in my site i have copied your code as you explained above . But when i copied and integrated that code they give me error “security header missing” can you help me.
    I have search many more site but i have found this best one thanks a lot….

    Thanks.

  • eswar

    Hello,Sir
    I tested this code in my site ,it is working. Thanks