PHP Class Markette\Gopay\Service\PreAuthorizedPaymentService

Inheritance: extends AbstractPaymentService
Afficher le fichier Open project: markette/gopay

Méthodes publiques

Méthode 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

Méthodes protégées

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

Method Details

buildPreAuthorizedPayment() protected méthode

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

cancelPreAuthorized() public méthode

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

capturePreAuthorized() public méthode

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

createPayment() public méthode

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

payPreAuthorized() public méthode

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
Résultat Nette\Application\Responses\RedirectResponse

payPreAuthorizedInline() public méthode

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
Résultat array