DirectTransaction

Extends \EasyTransac\Entities\Entity

Represents arguments of the request "DirectPayment"

author

klyde

copyright

EasyTransac

package

Default

Methods

__construct

__construct() 
inherited

getAmount

getAmount() 

getClientIp

getClientIp() 

getCreditCard

getCreditCard() 

getCustomer

getCustomer() 

getDescription

getDescription() 

getDownPayment

getDownPayment() 

getLanguage

getLanguage() 

getMultiplePayments

getMultiplePayments() 

getMultiplePaymentsRepeat

getMultiplePaymentsRepeat() 

getOrderId

getOrderId() 

getPayToEmail

getPayToEmail() 

getRebill

getRebill() 

getRecurrence

getRecurrence() 

getSecure

getSecure() 

getUserAgent

getUserAgent() 

Allows to fill the entity with data returned by the EasyTransac API

hydrate(Mixed $fields, Boolean $checkRequired = false) : \EasyTransac\Entities\Entity
inherited

Arguments

$fields

Mixed

Array or \stdClass

$checkRequired

Boolean

Response

\EasyTransac\Entities\Entity

Fill the entity with the API json response

hydrateWidthObject(\stdClass $fields, Boolean $checkRequired = false) 
inherited

Arguments

$fields

\stdClass

$checkRequired

Boolean

Fill the entity with an list of entity (see: CreditCardList with comment tag @array)

hydrateWithArray(\EasyTransac\Entities\Array<Entity> $itemsList, Boolean $checkRequired = false) 
inherited

Arguments

$itemsList

\EasyTransac\Entities\Array

$checkRequired

Boolean

Make the mapping between class attributes and API fields

makeMapping() 
inherited

setAmount

setAmount( $value) 

Arguments

$value

setClientIp

setClientIp( $value) 

Arguments

$value

setCreditCard

setCreditCard(\EasyTransac\Entities\CreditCard $value) 

setCustomer

setCustomer(\EasyTransac\Entities\Customer $value) 

setDescription

setDescription( $value) 

Arguments

$value

setDownPayment

setDownPayment( $value) 

Arguments

$value

setLanguage

setLanguage( $language) 

Arguments

$language

setMultiplePayments

setMultiplePayments( $value) 

Arguments

$value

setMultiplePaymentsRepeat

setMultiplePaymentsRepeat( $multiplePaymentsRepeat) 

Arguments

$multiplePaymentsRepeat

setOrderId

setOrderId( $value) 

Arguments

$value

setPayToEmail

setPayToEmail( $payToEmail) 

Arguments

$payToEmail

setRebill

setRebill( $rebill) 

Arguments

$rebill

setRecurrence

setRecurrence( $recurrence) 

Arguments

$recurrence

setSecure

setSecure( $value) 

Arguments

$value

setUserAgent

setUserAgent( $userAgent) 

Arguments

$userAgent

Prepares an array with the class fields formatted for the API

toArray() : Array
inherited

Response

Array

Properties

amount

amount : 
map

:Amount *

Type(s)

orderId

orderId : 
map

:OrderId *

Type(s)

description

description : 
map

:Description *

Type(s)

clientIp

clientIp : 
map

:ClientIp *

Type(s)

secure

secure : 
map

:3DS *

Type(s)

downPayment

downPayment : 
map

:DownPayment *

Type(s)

multiplePayments

multiplePayments : 
map

:MultiplePayments *

Type(s)

multiplePaymentsRepeat

multiplePaymentsRepeat : 
map

:MultiplePaymentsRepeat *

Type(s)

rebill

rebill : 
map

:Rebill *

Type(s)

recurrence

recurrence : 
map

:Recurrence *

Type(s)

payToEmail

payToEmail : 
map

:PayToEmail *

Type(s)

userAgent

userAgent : 
map

:UserAgent *

Type(s)

language

language : 
map

:Language *

Type(s)

customer

customer : 
object

:Customer *

Type(s)

creditCard

creditCard : 
object

:CreditCard *

Type(s)

mapping

mapping : 
inherited

Type(s)