PHP Classes

PHP Paypal Integration for Adaptive Payments Processor: Process payment with Paypal adaptive payments

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 51 All time: 10,677 This week: 524Up
Version License PHP version Categories
paypal_payment_proce 1.0.0BSD License5PHP 5, E-Commerce, Web services
Description 

Author

This package process payment with Paypal adaptive payments.

It can set up payments to be implemented with Paypal Adaptive payments API.

The package stores the payment information in a MySQL database.

It can process the payments and return them whether the charges succeed.

Picture of chrys ugwu
  Performance   Level  
Name: chrys ugwu <contact>
Classes: 16 packages by
Country: Nigeria Nigeria
Age: 31
All time rank: 16807 in Nigeria Nigeria
Week rank: 214 Up9 in Nigeria Nigeria Down
Innovation award
Innovation award
Nominee: 4x

Documentation

php_paypal_payment_processor

Process payment with paypal Adaptive Payments API GPP SITE

DONATION

instantiate

$pay = payment(PAYMETN_TYPE, 'paypal business or personal email address', 'homeless kids funding', PP_SUCCESS, PP_CANCELED, 'string');

user defined datas

$pay->info('currency type', 'ammount', 'first name', 'last name', 'email address', 'address 1', 'address 2 (optional: null)', 'city name', 'state name (2 letters abbreviation)', 
		   'zip code', 'country name (2 letters abbreviation)', 'phone 1 Area code', 'phone 1 number ', 'phone 2 Area code', 'phone 2 number');

data handler

$pay->save(SAVE_USER_DATA, SAVE_PROD_DATA, array('id' => 'lid', 'class' => 'lclas', 'data_id' => 'ldi', 'link' => 'donate to me :(', 'target' => '_black'));

process stats

if(!$pay->error)
	echo($pay->success);
else
	echo($pay->error)

index prototype

require_once('funcs.php');
$pay = payment(PAYMETN_TYPE, 'paypal business or personal email address', 'homeless kids funding', PP_SUCCESS, PP_CANCELED, 'string');
$pay->info('currency type', 'ammount', 'first name', 'last name', 'email address', 'address 1', 'address 2 (optional: null)', 'city name', 'state name (2 letters abbreviation)', 
		   'zip code', 'country name (2 letters abbreviation)', 'phone 1 Area code', 'phone 1 number ', 'phone 2 Area code', 'phone 2 number');
$pay->save(SAVE_USER_DATA, SAVE_PROD_DATA, array('id' => 'lid', 'class' => 'lclas', 'data_id' => 'ldi', 'link' => 'donate to me :(', 'target' => '_black'));
if(!$pay->error)
	echo($pay->success); 
else
	echo($pay->error); 

BUY NOW

instantiate

#instance
//$new[] = _new('name', 'amount', 'id', 'quantity', 'tax', no shipping, 'shipping charge', 'discount amount', discount rate, Optional label);
$new[] = _new('green shirt', '39.99', '18495371', null, '0.5%', '1', '2.44', null, null, 'The padded insole for your comfortable wear');

/*
for more than one product
$new[] = _new('white shirt', '32.79', '14s755596', '4', '0.5', '1', '2.44', '2.00', null, null, 'classic-style pumps feature'); -2.00 discount and 0.5 tax
$new[] = _new('blue shirt', '82.79', '147D5596', '1', '0.5%', '1', '2.44', null, '50', null); 50% discount and 0.5% tax
$new[] = _new('myebook resale', '32.79', '14755596', null, null, null, null, null, 10%, null);
$new[] = _new('software product key', '32.79', '14755596');//no ship, tax, discount, label, and quantity is 1
*/
$pay = payment(PAYMETN_TYPE, 'paypal business or personal email address', $new, PP_SUCCESS, PP_CANCELED, 'string', 'sale');

user defined datas

#data as array 
$pay->info('currency type', 'first name', 'last name', 'email address', 'address 1', 'address 2 (optional: null)', 'city name', 'state name (2 letters abbreviation)', 
		   'zip code', 'country name (2 letters abbreviation)', 'phone 1 Area code', 'phone 1 number ', 'phone 2 Area code', 'phone 2 number');

data handler

$pay->save(SAVE_USER_DATA, SAVE_PROD_DATA, 'redirect');

process stats

if(!$pay->error)
	echo($pay->success);
else
	echo($pay->error);

index prototype

require_once('funcs.php');
$new[] = _new('green shirt', '39.99', '18495371', null, '0.5%', '1', '2.44', null, null, 'The padded insole for your comfortable wear');
$new[] = _new('myebook resale', '32.79', '14755596', null, null, null, null, null, 10%, null);
$pay = payment(PAYMETN_TYPE, 'paypal business or personal email address', $new, PP_SUCCESS, PP_CANCELED, 'string', 'sale');
$pay->info('currency type', 'first name', 'last name', 'email address', 'address 1', 'address 2 (optional: null)', 'city name', 'state name (2 letters abbreviation)', 
		   'zip code', 'country name (2 letters abbreviation)', 'phone 1 Area code', 'phone 1 number ', 'phone 2 Area code', 'phone 2 number');
$pay->save(SAVE_USER_DATA, SAVE_PROD_DATA, 'redirect');
if(!$pay->error)
	echo($pay->success);
else
	echo($pay->error);

  Files folder image Files (22)  
File Role Description
Files folder imageincludes (3 files)
Files folder imageinstall (12 files)
Files folder imagelanguages (1 file)
Plain text file doc.php Doc. Documentation script
Plain text file funcs.php Class Class source
Plain text file index.php Example Example script
Plain text file LICENSE Lic. License text
Plain text file README.md Doc. Documentation
Plain text file stats.php Aux. Auxiliary script

  Files folder image Files (22)  /  includes  
File Role Description
  Plain text file conn.php Example Example script
  Plain text file EN.php Conf. Configuration script
  Plain text file pp_payment_proc.sql Data Auxiliary data

  Files folder image Files (22)  /  install  
File Role Description
  Plain text file donate.conn.sh Data Auxiliary data
  Plain text file donate.funcs.sh Data Auxiliary data
  Plain text file donate.index.sh Data Auxiliary data
  Plain text file donate.lang.sh Data Auxiliary data
  Plain text file donate.stats.sh Data Auxiliary data
  Plain text file index.php Aux. Auxiliary script
  Plain text file shop.conn.sh Data Auxiliary data
  Plain text file shop.funcs.sh Data Auxiliary data
  Plain text file shop.index.sh Data Auxiliary data
  Plain text file shop.lang.sh Data Auxiliary data
  Plain text file shop.stats.sh Data Auxiliary data
  Plain text file sql.php Example Example script

  Files folder image Files (22)  /  languages  
File Role Description
  Plain text file EN.php Aux. Auxiliary script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:51
This week:0
All time:10,677
This week:524Up