PHP Class Pop\Payment\Adapter\PayPal

Author: Nick Sagona, III ([email protected])
Inheritance: extends AbstractAdapter
Show file Open project: nicksagona/PopPHP

Protected Properties

Property Type Description
$apiPassword string API password
$apiUsername string API username
$fields array Transaction fields for normalization purposes
$liveUrl string Live URL
$requiredFields array Required fields
$signature string API signature
$testUrl string Test URL
$transaction array Transaction data

Public Methods

Method Description
__construct ( string $apiUser, string $apiPass, string $sign, boolean $test = false ) : PayPal Constructor
send ( boolean $verifyPeer = true ) : void Send transaction

Protected Methods

Method Description
buildPostString ( ) : string Build the POST string
parseResponseCodes ( ) : void Parse the response codes

Method Details

__construct() public method

Method to instantiate an PayPal payment adapter object
public __construct ( string $apiUser, string $apiPass, string $sign, boolean $test = false ) : PayPal
$apiUser string
$apiPass string
$sign string
$test boolean
return PayPal

buildPostString() protected method

Build the POST string
protected buildPostString ( ) : string
return string

parseResponseCodes() protected method

Parse the response codes
protected parseResponseCodes ( ) : void
return void

send() public method

Send transaction
public send ( boolean $verifyPeer = true ) : void
$verifyPeer boolean
return void

Property Details

$apiPassword protected property

API password
protected string $apiPassword
return string

$apiUsername protected property

API username
protected string $apiUsername
return string

$fields protected property

Transaction fields for normalization purposes
protected array $fields
return array

$liveUrl protected property

Live URL
protected string $liveUrl
return string

$requiredFields protected property

Required fields
protected array $requiredFields
return array

$signature protected property

API signature
protected string $signature
return string

$testUrl protected property

Test URL
protected string $testUrl
return string

$transaction protected property

Transaction data
protected array $transaction
return array