PHP Class Markette\Gopay\Service\PreAuthorizedPaymentService

Inheritance: extends AbstractPaymentService
Show file Open project: markette/gopay

Public Methods

Method Description
cancelPreAuthorized ( float $paymentSessionId ) : void Cancel pre authorized payment via GoPay gateway
capturePreAuthorized ( float $paymentSessionId ) : void Capture pre authorized payment via GoPay gateway
createPayment ( array $values = [] ) : Markette\Gopay\Entity\PreAuthorizedPayment Creates new PreAuthorizedPayment with given default values
payPreAuthorized ( Markette\Gopay\Entity\PreAuthorizedPayment $payment, string $channel, callable $callback ) : Nette\Application\Responses\RedirectResponse Executes payment via redirecting to GoPay payment gate
payPreAuthorizedInline ( Markette\Gopay\Entity\PreAuthorizedPayment $payment, string $channel, callable $callback ) : array Executes payment via INLINE GoPay payment gate

Protected Methods

Method Description
buildPreAuthorizedPayment ( Markette\Gopay\Entity\PreAuthorizedPayment $payment, string $channel ) : integer Check and create pre authorized payment

Method Details

buildPreAuthorizedPayment() protected method

Check and create pre authorized payment
protected buildPreAuthorizedPayment ( Markette\Gopay\Entity\PreAuthorizedPayment $payment, string $channel ) : integer
$payment Markette\Gopay\Entity\PreAuthorizedPayment
$channel string
return integer

cancelPreAuthorized() public method

Cancel pre authorized payment via GoPay gateway
public cancelPreAuthorized ( float $paymentSessionId ) : void
$paymentSessionId float
return void

capturePreAuthorized() public method

Capture pre authorized payment via GoPay gateway
public capturePreAuthorized ( float $paymentSessionId ) : void
$paymentSessionId float
return void

createPayment() public method

Creates new PreAuthorizedPayment with given default values
public createPayment ( array $values = [] ) : Markette\Gopay\Entity\PreAuthorizedPayment
$values array
return Markette\Gopay\Entity\PreAuthorizedPayment

payPreAuthorized() public method

Executes payment via redirecting to GoPay payment gate
public payPreAuthorized ( Markette\Gopay\Entity\PreAuthorizedPayment $payment, string $channel, callable $callback ) : Nette\Application\Responses\RedirectResponse
$payment Markette\Gopay\Entity\PreAuthorizedPayment
$channel string
$callback callable
return Nette\Application\Responses\RedirectResponse

payPreAuthorizedInline() public method

Executes payment via INLINE GoPay payment gate
public payPreAuthorizedInline ( Markette\Gopay\Entity\PreAuthorizedPayment $payment, string $channel, callable $callback ) : array
$payment Markette\Gopay\Entity\PreAuthorizedPayment
$channel string
$callback callable
return array