PHP Class Markette\Gopay\Service\PaymentService

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

Méthodes publiques

Méthode Description
createPayment ( array $values = [] ) : Markette\Gopay\Entity\Payment Creates new Payment with given default values
pay ( Markette\Gopay\Entity\Payment $payment, string $channel, callable $callback ) : Nette\Application\Responses\RedirectResponse Executes payment via redirecting to GoPay payment gate
payInline ( Markette\Gopay\Entity\Payment $payment, string $channel, callable $callback ) : array Executes payment via INLINE GoPay payment gate

Méthodes protégées

Méthode Description
buildPayment ( Markette\Gopay\Entity\Payment $payment, string $channel ) : integer Check and create payment

Method Details

buildPayment() protected méthode

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

createPayment() public méthode

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

pay() public méthode

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

payInline() public méthode

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