PHP Interface Sonata\Component\Payment\TransactionInterface

The object contains : - the order : the related order - the transaction_id : the transaction token from the bank - the state : the current state of the transaction, only OK or KO - the status : the current status of the transaction - the error code : the current error code of the transaction from the payment handler
Datei anzeigen Open project: sonata-project/ecommerce Interface Usage Examples

Public Methods

Method Description
addInformation ( string $message )
get ( string $name, mixed $default = null ) : mixed
getCreatedAt ( ) : DateTime
getInformation ( ) : string
getOrder ( ) : Sonata\Component\Order\OrderInterface
getParameters ( ) : array
getPaymentCode ( ) : string
getState ( ) : integer
getStatusCode ( ) return integer.
getStatusList ( ) : array return status list.
getStatusName ( ) : string
getTransactionId ( ) : integer
isValid ( ) : boolean
setCreatedAt ( DateTime $createdAt = null )
setInformation ( string $message )
setOrder ( Sonata\Component\Order\OrderInterface $order )
setParameters ( array $parameters )
setPaymentCode ( string $paymentCode )
setState ( integer $state )
setStatusCode ( integer $statusCode )
setTransactionId ( integer $transactionId )

Method Details

addInformation() public method

public addInformation ( string $message )
$message string

get() public method

public get ( string $name, mixed $default = null ) : mixed
$name string
$default mixed
return mixed

getCreatedAt() public method

public getCreatedAt ( ) : DateTime
return DateTime

getInformation() public method

public getInformation ( ) : string
return string

getOrder() public method

public getOrder ( ) : Sonata\Component\Order\OrderInterface
return Sonata\Component\Order\OrderInterface

getParameters() public method

public getParameters ( ) : array
return array

getPaymentCode() public method

public getPaymentCode ( ) : string
return string

getState() public method

public getState ( ) : integer
return integer

getStatusCode() public method

return integer.
public getStatusCode ( )

getStatusList() public static method

return status list.
public static getStatusList ( ) : array
return array

getStatusName() public method

public getStatusName ( ) : string
return string

getTransactionId() public method

public getTransactionId ( ) : integer
return integer

isValid() public method

public isValid ( ) : boolean
return boolean

setCreatedAt() public method

public setCreatedAt ( DateTime $createdAt = null )
$createdAt DateTime

setInformation() public method

public setInformation ( string $message )
$message string

setOrder() public method

public setOrder ( Sonata\Component\Order\OrderInterface $order )
$order Sonata\Component\Order\OrderInterface

setParameters() public method

public setParameters ( array $parameters )
$parameters array

setPaymentCode() public method

public setPaymentCode ( string $paymentCode )
$paymentCode string

setState() public method

public setState ( integer $state )
$state integer

setStatusCode() public method

public setStatusCode ( integer $statusCode )
$statusCode integer

setTransactionId() public method

public setTransactionId ( integer $transactionId )
$transactionId integer