PHP 클래스 Pop\Payment\Payment

저자: Nick Sagona, III ([email protected])
파일 보기 프로젝트 열기: nicksagona/PopPHP 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$adapter mixed Payment adapter
$fields array These are the common transaction fields that will be normalized to the proper field names by the adapter. You can also add direct adapter-specific fields to the payment transaction object that won't be affected by the field normalization, for example: (Authorize.net) $payment->x_invoice_num = '12345'; (UsaEPay) $payment->UMinvoice = '12345';

공개 메소드들

메소드 설명
__construct ( AbstractAdapter $adapter ) : Payment Constructor
__get ( string $name ) : mixed Get method to return the value of fields[$name].
__isset ( string $name ) : boolean Return the isset value of fields[$name].
__set ( string $name, mixed $value ) : void Set method to set the property to the value of fields[$name].
__unset ( string $name ) : void Unset fields[$name].
adapter ( ) : AbstractAdapter Access the adapter
getCode ( string $key ) : string Get specific response code from a field in the array
getMessage ( ) : string Get response message
getResponse ( ) : string Get raw response
getResponseCode ( ) : string Get response code
getResponseCodes ( ) : array Get response codes
isApproved ( ) : boolean Return whether the transaction is approved
isDeclined ( ) : boolean Return whether the transaction is declined
isError ( ) : boolean Return whether the transaction is an error
isTest ( ) : boolean Return whether the transaction is in test mode
isValid ( ) : boolean Validate transaction data
send ( boolean $verifyPeer = true ) : void Send transaction data
shippingSameAsBilling ( ) : Payment Set the shipping data fields to the same as billing data fields

메소드 상세

__construct() 공개 메소드

Instantiate the payment object
public __construct ( AbstractAdapter $adapter ) : Payment
$adapter Pop\Payment\Adapter\AbstractAdapter
리턴 Payment

__get() 공개 메소드

Get method to return the value of fields[$name].
public __get ( string $name ) : mixed
$name string
리턴 mixed

__isset() 공개 메소드

Return the isset value of fields[$name].
public __isset ( string $name ) : boolean
$name string
리턴 boolean

__set() 공개 메소드

Set method to set the property to the value of fields[$name].
public __set ( string $name, mixed $value ) : void
$name string
$value mixed
리턴 void

__unset() 공개 메소드

Unset fields[$name].
public __unset ( string $name ) : void
$name string
리턴 void

adapter() 공개 메소드

Access the adapter
public adapter ( ) : AbstractAdapter
리턴 Pop\Payment\Adapter\AbstractAdapter

getCode() 공개 메소드

Get specific response code from a field in the array
public getCode ( string $key ) : string
$key string
리턴 string

getMessage() 공개 메소드

Get response message
public getMessage ( ) : string
리턴 string

getResponse() 공개 메소드

Get raw response
public getResponse ( ) : string
리턴 string

getResponseCode() 공개 메소드

Get response code
public getResponseCode ( ) : string
리턴 string

getResponseCodes() 공개 메소드

Get response codes
public getResponseCodes ( ) : array
리턴 array

isApproved() 공개 메소드

Return whether the transaction is approved
public isApproved ( ) : boolean
리턴 boolean

isDeclined() 공개 메소드

Return whether the transaction is declined
public isDeclined ( ) : boolean
리턴 boolean

isError() 공개 메소드

Return whether the transaction is an error
public isError ( ) : boolean
리턴 boolean

isTest() 공개 메소드

Return whether the transaction is in test mode
public isTest ( ) : boolean
리턴 boolean

isValid() 공개 메소드

Validate transaction data
public isValid ( ) : boolean
리턴 boolean

send() 공개 메소드

Send transaction data
public send ( boolean $verifyPeer = true ) : void
$verifyPeer boolean
리턴 void

shippingSameAsBilling() 공개 메소드

Set the shipping data fields to the same as billing data fields
public shippingSameAsBilling ( ) : Payment
리턴 Payment

프로퍼티 상세

$adapter 보호되어 있는 프로퍼티

Payment adapter
protected mixed $adapter
리턴 mixed

$fields 보호되어 있는 프로퍼티

These are the common transaction fields that will be normalized to the proper field names by the adapter. You can also add direct adapter-specific fields to the payment transaction object that won't be affected by the field normalization, for example: (Authorize.net) $payment->x_invoice_num = '12345'; (UsaEPay) $payment->UMinvoice = '12345';
protected array $fields
리턴 array