PHP 클래스 Markette\Gopay\Service\PaymentService

상속: extends AbstractPaymentService
파일 보기 프로젝트 열기: markette/gopay 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
buildPayment ( Markette\Gopay\Entity\Payment $payment, string $channel ) : integer Check and create payment

메소드 상세

buildPayment() 보호된 메소드

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

createPayment() 공개 메소드

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

pay() 공개 메소드

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

payInline() 공개 메소드

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
리턴 array