PHP Class Markette\Gopay\Entity\ReturnedPayment

Inheritance: extends Payment
Show file Open project: markette/gopay Class Usage Examples

Public Methods

Method Description
__construct ( array $values, array $valuesToBeVerified )
getStatus ( ) : array Receives status of payment from Gopay WS
isAuthorized ( ) : boolean Returns TRUE if payment is authorized
isCanceled ( ) : boolean Returns TRUE if payment is canceled
isFraud ( ) : boolean Returns TRUE if payment is declared fraud by Gopay
isPaid ( ) : boolean Returns TRUE if payment is verified by Gopay as paid
isRefunded ( ) : boolean Returns TRUE if payment is refunded
isTimeouted ( ) : boolean Returns TRUE if payment time limit already expired
isWaiting ( ) : boolean Returns TRUE if payment is waiting to be paid
setGopay ( Markette\Gopay\Gopay $gopay )

Protected Methods

Method Description
getGopay ( ) : Markette\Gopay\Gopay

Method Details

__construct() public method

public __construct ( array $values, array $valuesToBeVerified )
$values array
$valuesToBeVerified array

getGopay() protected method

protected getGopay ( ) : Markette\Gopay\Gopay
return Markette\Gopay\Gopay

getStatus() public method

Receives status of payment from Gopay WS
public getStatus ( ) : array
return array

isAuthorized() public method

Returns TRUE if payment is authorized
public isAuthorized ( ) : boolean
return boolean

isCanceled() public method

Returns TRUE if payment is canceled
public isCanceled ( ) : boolean
return boolean

isFraud() public method

Returns TRUE if payment is declared fraud by Gopay
public isFraud ( ) : boolean
return boolean

isPaid() public method

Returns TRUE if payment is verified by Gopay as paid
public isPaid ( ) : boolean
return boolean

isRefunded() public method

Returns TRUE if payment is refunded
public isRefunded ( ) : boolean
return boolean

isTimeouted() public method

Returns TRUE if payment time limit already expired
public isTimeouted ( ) : boolean
return boolean

isWaiting() public method

Returns TRUE if payment is waiting to be paid
public isWaiting ( ) : boolean
return boolean

setGopay() public method

public setGopay ( Markette\Gopay\Gopay $gopay )
$gopay Markette\Gopay\Gopay