PHP 인터페이스 Sonata\Component\Payment\PaymentHandlerInterface

파일 보기 프로젝트 열기: sonata-project/ecommerce

공개 메소드들

메소드 설명
getPaymentCallbackResponse ( Request $request ) : Response Returns the callback response of current payment mean once everything validated.
getSendbankOrder ( Sonata\Component\Basket\BasketInterface $basket ) : Sonata\Component\Order\OrderInterface Creates the order based on current basket & resets the basket.
handleConfirmation ( Request $request ) : Sonata\Component\Order\OrderInterface Returns the order for given confirmation request and checks the validity.
handleError ( Request $request, Sonata\Component\Basket\BasketInterface $basket ) : Sonata\Component\Order\OrderInterface Processes the request to generate the transaction related to the error and returns associated order.

메소드 상세

getPaymentCallbackResponse() 공개 메소드

Returns the callback response of current payment mean once everything validated.
public getPaymentCallbackResponse ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\Response

getSendbankOrder() 공개 메소드

Creates the order based on current basket & resets the basket.
public getSendbankOrder ( Sonata\Component\Basket\BasketInterface $basket ) : Sonata\Component\Order\OrderInterface
$basket Sonata\Component\Basket\BasketInterface
리턴 Sonata\Component\Order\OrderInterface

handleConfirmation() 공개 메소드

Returns the order for given confirmation request and checks the validity.
public handleConfirmation ( Request $request ) : Sonata\Component\Order\OrderInterface
$request Symfony\Component\HttpFoundation\Request
리턴 Sonata\Component\Order\OrderInterface

handleError() 공개 메소드

Processes the request to generate the transaction related to the error and returns associated order.
public handleError ( Request $request, Sonata\Component\Basket\BasketInterface $basket ) : Sonata\Component\Order\OrderInterface
$request Symfony\Component\HttpFoundation\Request
$basket Sonata\Component\Basket\BasketInterface
리턴 Sonata\Component\Order\OrderInterface