PHP Class Markette\Gopay\Service\PaymentService

Inheritance: extends AbstractPaymentService
ファイルを表示 Open project: markette/gopay Class Usage Examples

Public Methods

Method 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

Protected Methods

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

Method Details

buildPayment() protected method

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

createPayment() public method

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

pay() public method

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
return Nette\Application\Responses\RedirectResponse

payInline() public method

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
return array