PHP Интерфейс Sonata\Component\Payment\PaymentHandlerInterface

Показать файл Открыть проект

Открытые методы

Метод Описание
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