Categories: PAYMENT GATEWAY

PayPal Payment Gateway Integration Using PHP

PayPal is a payment process system, we will integrate PayPal with websites by using with php.

PayPal integration classification system
PayPal integration classification system included four files as shown below.

constants.php − This file has included API user name, password and signature.

CallerService.php − This file has included PayPal Services, that is employed to decision PayPal services.

confirmation.php − This file has included a form with minimum fields required to make payment process and it’llcome back payment success or failure.

PayPal_entry.php − This page has used to send the user the info to PayPal. It acts as associate adapter between PayPal and user form.

The user has to transfer a PayPal SDK file from here and precise a zipper file. The zip file contains four php files, we do not have to be compelled to amendment any file except constants.php

 

The constants.php file contains code as shown below −

 

<?php
   define('API_USERNAME', 'YOUR USER NAME HERE');
   define('API_PASSWORD', 'YOUR PASSWORD HERE');
   define('API_SIGNATURE', 'YOUR API SIGNATURE HERE');
   define('API_ENDPOINT', 'https://api-3t.paypal.com/nvp');
   define('USE_PROXY',FALSE);
   define('PROXY_HOST', '127.0.0.1');
   define('PROXY_PORT', '808');
   define('PAYPAL_URL', 'https://www.PayPal.com/webscr&cmd=_express-checkout&token=');
   define('VERSION', '53.0');
?>

The user can declare User Name, password and signature in on top of syntax that area unit placed in constants.php. this can be AN experimental example therefore the last quantity are supplementary to sandbox’s account.

 

If you face any problem then contact with me.

 

Basant Mallick

Basant

Recent Posts

How to Center submit button of wpForm

You must navigate to Settings » General first. Add wpf-center to the Form CSS Class…

8 months ago

How to add Marquee on any website wordpress,PHP,HTML,eBlogger ?

if you want to add marquee on any website (wordpress,PHP,HTML,Blogger). you just need to follow…

8 months ago

How to Autoplay and Loop YouTube Videos in WordPress

First Method: Use below code to play youtube video in loop and most important is…

1 year ago

How to Disable WP JSON Rest API in WordPress without plugin ?

just add below code in wordpress theme function.php file at the bottom -------------------------------------------------- Add the…

1 year ago