PHP 클래스 Sonata\Component\Payment\PaymentHandler

Responsible for interactions between PaymentController & Model
저자: Hugo Briand ([email protected])
상속: implements Sonata\Component\Payment\PaymentHandlerInterface
파일 보기 프로젝트 열기: sonata-project/ecommerce 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$notificationBackend Sonata\NotificationBundle\Backend\BackendInterface
$orderManager Sonata\Component\Order\OrderManagerInterface
$paymentSelector Sonata\Component\Payment\PaymentSelectorInterface
$referenceGenerator Sonata\Component\Generator\ReferenceInterface
$transactionManager TransactionManagerInterface

공개 메소드들

메소드 설명
__construct ( Sonata\Component\Order\OrderManagerInterface $orderManager, Sonata\Component\Payment\PaymentSelectorInterface $paymentSelector, Sonata\Component\Generator\ReferenceInterface $referenceGenerator, TransactionManagerInterface $transactionManager, Sonata\NotificationBundle\Backend\BackendInterface $notificationBackend, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher ) Constructor.
getPaymentCallbackResponse ( Request $request )
getSendbankOrder ( Sonata\Component\Basket\BasketInterface $basket )
handleConfirmation ( Request $request )
handleError ( Request $request, Sonata\Component\Basket\BasketInterface $basket )

보호된 메소드들

메소드 설명
createTransaction ( Request $request ) : Sonata\Component\Payment\TransactionInterface
getEventDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface
getPayment ( $code ) : Sonata\Component\Payment\PaymentInterface
getValidOrder ( Sonata\Component\Payment\TransactionInterface $transaction ) : Sonata\Component\Order\OrderInterface Retrieves the order matching $transaction and adds it to $transaction.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Sonata\Component\Order\OrderManagerInterface $orderManager, Sonata\Component\Payment\PaymentSelectorInterface $paymentSelector, Sonata\Component\Generator\ReferenceInterface $referenceGenerator, TransactionManagerInterface $transactionManager, Sonata\NotificationBundle\Backend\BackendInterface $notificationBackend, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher )
$orderManager Sonata\Component\Order\OrderManagerInterface
$paymentSelector Sonata\Component\Payment\PaymentSelectorInterface
$referenceGenerator Sonata\Component\Generator\ReferenceInterface
$transactionManager TransactionManagerInterface
$notificationBackend Sonata\NotificationBundle\Backend\BackendInterface
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface

createTransaction() 보호된 메소드

protected createTransaction ( Request $request ) : Sonata\Component\Payment\TransactionInterface
$request Symfony\Component\HttpFoundation\Request
리턴 Sonata\Component\Payment\TransactionInterface

getEventDispatcher() 보호된 메소드

protected getEventDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface
리턴 Symfony\Component\EventDispatcher\EventDispatcherInterface

getPayment() 보호된 메소드

protected getPayment ( $code ) : Sonata\Component\Payment\PaymentInterface
$code
리턴 Sonata\Component\Payment\PaymentInterface

getPaymentCallbackResponse() 공개 메소드

public getPaymentCallbackResponse ( Request $request )
$request Symfony\Component\HttpFoundation\Request

getSendbankOrder() 공개 메소드

public getSendbankOrder ( Sonata\Component\Basket\BasketInterface $basket )
$basket Sonata\Component\Basket\BasketInterface

getValidOrder() 보호된 메소드

Retrieves the order matching $transaction and adds it to $transaction.
protected getValidOrder ( Sonata\Component\Payment\TransactionInterface $transaction ) : Sonata\Component\Order\OrderInterface
$transaction Sonata\Component\Payment\TransactionInterface The request's transaction (will be linked to the order in the process)
리턴 Sonata\Component\Order\OrderInterface

handleConfirmation() 공개 메소드

public handleConfirmation ( Request $request )
$request Symfony\Component\HttpFoundation\Request

handleError() 공개 메소드

public handleError ( Request $request, Sonata\Component\Basket\BasketInterface $basket )
$request Symfony\Component\HttpFoundation\Request
$basket Sonata\Component\Basket\BasketInterface

프로퍼티 상세

$eventDispatcher 보호되어 있는 프로퍼티

protected EventDispatcherInterface,Symfony\Component\EventDispatcher $eventDispatcher
리턴 Symfony\Component\EventDispatcher\EventDispatcherInterface

$notificationBackend 보호되어 있는 프로퍼티

protected BackendInterface,Sonata\NotificationBundle\Backend $notificationBackend
리턴 Sonata\NotificationBundle\Backend\BackendInterface

$orderManager 보호되어 있는 프로퍼티

protected OrderManagerInterface,Sonata\Component\Order $orderManager
리턴 Sonata\Component\Order\OrderManagerInterface

$paymentSelector 보호되어 있는 프로퍼티

protected PaymentSelectorInterface,Sonata\Component\Payment $paymentSelector
리턴 Sonata\Component\Payment\PaymentSelectorInterface

$referenceGenerator 보호되어 있는 프로퍼티

protected ReferenceInterface,Sonata\Component\Generator $referenceGenerator
리턴 Sonata\Component\Generator\ReferenceInterface

$transactionManager 보호되어 있는 프로퍼티

protected TransactionManagerInterface $transactionManager
리턴 TransactionManagerInterface