PHP Interface Sonata\Component\Payment\PaymentHandlerInterface

ファイルを表示 Open project: sonata-project/ecommerce

Public Methods

Method Description
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.

Method Details

getPaymentCallbackResponse() public method

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

getSendbankOrder() public method

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
return Sonata\Component\Order\OrderInterface

handleConfirmation() public method

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

handleError() public method

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
return Sonata\Component\Order\OrderInterface