PHP Class Markette\Gopay\Service\RecurrentPaymentService

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

Méthodes publiques

Méthode Description
cancelRecurrent ( float $paymentSessionId ) : void Cancel recurrent payment via GoPay gateway
createPayment ( array $values = [] ) : RecurrentPayment Creates new RecurrentPayment with given default values
payRecurrent ( RecurrentPayment $payment, string $channel, callable $callback ) : Nette\Application\Responses\RedirectResponse Executes payment via redirecting to GoPay payment gate
payRecurrentInline ( RecurrentPayment $payment, string $channel, callable $callback ) : array Executes payment via INLINE GoPay payment gate

Méthodes protégées

Méthode Description
buildRecurrentPayment ( RecurrentPayment $payment, string $channel ) : integer Check and create recurrent payment

Method Details

buildRecurrentPayment() protected méthode

Check and create recurrent payment
protected buildRecurrentPayment ( RecurrentPayment $payment, string $channel ) : integer
$payment Markette\Gopay\Entity\RecurrentPayment
$channel string
Résultat integer

cancelRecurrent() public méthode

Cancel recurrent payment via GoPay gateway
public cancelRecurrent ( float $paymentSessionId ) : void
$paymentSessionId float
Résultat void

createPayment() public méthode

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

payRecurrent() public méthode

Executes payment via redirecting to GoPay payment gate
public payRecurrent ( RecurrentPayment $payment, string $channel, callable $callback ) : Nette\Application\Responses\RedirectResponse
$payment Markette\Gopay\Entity\RecurrentPayment
$channel string
$callback callable
Résultat Nette\Application\Responses\RedirectResponse

payRecurrentInline() public méthode

Executes payment via INLINE GoPay payment gate
public payRecurrentInline ( RecurrentPayment $payment, string $channel, callable $callback ) : array
$payment Markette\Gopay\Entity\RecurrentPayment
$channel string
$callback callable
Résultat array