PaymentManager
in package

Table of Contents

abandonPayment()  : bool
canBeAbandoned()  : bool
canBeCancelled()  : bool
canBeCompleted()  : bool
canBeFailed()  : bool
canBeOnHold()  : bool
canBeRefunded()  : bool
cancellPayment()  : bool
completePayment()  : bool
failPayment()  : bool
holdPayment()  : bool
refundPayment()  : bool

Methods

abandonPayment()

public abandonPayment(Payment &$payment[, string $log = '' ][, bool $skipCheck = false ]) : bool
Parameters
$payment : Payment
$log : string = ''

Optional. Default empty string

$skipCheck : bool = false

Skip check of possibility

Return values
bool

canBeAbandoned()

public canBeAbandoned(Payment $payment) : bool
Parameters
$payment : Payment
Tags
since
3.7.6

added second parameter to filter "mphb_can_payment_be_abandoned" - $payment.

Return values
bool

canBeCancelled()

public canBeCancelled(Payment $payment) : bool
Parameters
$payment : Payment
Tags
since
3.9.6
Return values
bool

canBeCompleted()

public canBeCompleted(Payment $payment) : bool
Parameters
$payment : Payment
Tags
since
3.7.6

added second parameter to filter "mphb_can_payment_be_completed" - $payment.

Return values
bool

canBeFailed()

public canBeFailed(Payment $payment) : bool
Parameters
$payment : Payment
Tags
since
3.7.6

added second parameter to filter "mphb_can_payment_be_failed" - $payment.

Return values
bool

canBeOnHold()

public canBeOnHold(Payment $payment) : bool
Parameters
$payment : Payment
Tags
since
3.7.6

added second parameter to filter "mphb_can_payment_be_on_hold" - $payment.

Return values
bool

canBeRefunded()

public canBeRefunded(Payment $payment) : bool
Parameters
$payment : Payment
Tags
since
3.7.6

added second parameter to filter "mphb_can_payment_be_refunded" - $payment.

Return values
bool

cancellPayment()

public cancellPayment(Payment &$payment[, string $log = '' ][, bool $skipCheck = false ]) : bool
Parameters
$payment : Payment
$log : string = ''

Optional. Default empty string

$skipCheck : bool = false

Skip check of possibility

Tags
since
3.9.6
Return values
bool

completePayment()

public completePayment(Payment &$payment[, string $log = '' ][, bool $skipCheck = false ]) : bool
Parameters
$payment : Payment
$log : string = ''

Optional. Default empty string

$skipCheck : bool = false

Skip check of possibility

Return values
bool

failPayment()

public failPayment(Payment &$payment[, string $log = '' ][, bool $skipCheck = false ]) : bool
Parameters
$payment : Payment
$log : string = ''

Optional. Default empty string

$skipCheck : bool = false

Skip check of possibility

Return values
bool

holdPayment()

public holdPayment(Payment &$payment[, string $log = '' ][, bool $skipCheck = false ]) : bool
Parameters
$payment : Payment
$log : string = ''

Optional. Default empty string

$skipCheck : bool = false

Skip check of possibility

Return values
bool

refundPayment()

public refundPayment(Payment &$payment[, string $log = '' ][, bool $skipCheck = false ]) : bool
Parameters
$payment : Payment
$log : string = ''

Optional. Default empty string

$skipCheck : bool = false

Skip check of possibility

Return values
bool

Search results