PHP Class Sonata\Component\Payment\CheckPayment

Inheritance: extends BasePayment
Show file Open project: sonata-project/ecommerce Class Usage Examples

Protected Properties

Property Type Description
$browser Buzz\Browser
$router Symfony\Component\Routing\RouterInterface

Public Methods

Method Description
__construct ( Symfony\Component\Routing\RouterInterface $router, Psr\Log\LoggerInterface $logger, Buzz\Browser $browser )
applyTransactionId ( Sonata\Component\Payment\TransactionInterface $transaction )
getOrderReference ( Sonata\Component\Payment\TransactionInterface $transaction )
getTransactionId ( ) : integer
handleError ( Sonata\Component\Payment\TransactionInterface $transaction )
isAddableProduct ( Sonata\Component\Basket\BasketInterface $basket, Sonata\Component\Product\ProductInterface $product )
isBasketValid ( Sonata\Component\Basket\BasketInterface $basket )
isCallbackValid ( Sonata\Component\Payment\TransactionInterface $transaction )
isRequestValid ( Sonata\Component\Payment\TransactionInterface $transaction )
sendConfirmationReceipt ( Sonata\Component\Payment\TransactionInterface $transaction )
sendbank ( Sonata\Component\Order\OrderInterface $order )

Method Details

__construct() public method

public __construct ( Symfony\Component\Routing\RouterInterface $router, Psr\Log\LoggerInterface $logger, Buzz\Browser $browser )
$router Symfony\Component\Routing\RouterInterface
$logger Psr\Log\LoggerInterface
$browser Buzz\Browser

applyTransactionId() public method

public applyTransactionId ( Sonata\Component\Payment\TransactionInterface $transaction )
$transaction Sonata\Component\Payment\TransactionInterface

getOrderReference() public method

public getOrderReference ( Sonata\Component\Payment\TransactionInterface $transaction )
$transaction Sonata\Component\Payment\TransactionInterface

getTransactionId() public method

public getTransactionId ( ) : integer
return integer

handleError() public method

public handleError ( Sonata\Component\Payment\TransactionInterface $transaction )
$transaction Sonata\Component\Payment\TransactionInterface

isAddableProduct() public method

public isAddableProduct ( Sonata\Component\Basket\BasketInterface $basket, Sonata\Component\Product\ProductInterface $product )
$basket Sonata\Component\Basket\BasketInterface
$product Sonata\Component\Product\ProductInterface

isBasketValid() public method

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

isCallbackValid() public method

public isCallbackValid ( Sonata\Component\Payment\TransactionInterface $transaction )
$transaction Sonata\Component\Payment\TransactionInterface

isRequestValid() public method

public isRequestValid ( Sonata\Component\Payment\TransactionInterface $transaction )
$transaction Sonata\Component\Payment\TransactionInterface

sendConfirmationReceipt() public method

public sendConfirmationReceipt ( Sonata\Component\Payment\TransactionInterface $transaction )
$transaction Sonata\Component\Payment\TransactionInterface

sendbank() public method

public sendbank ( Sonata\Component\Order\OrderInterface $order )
$order Sonata\Component\Order\OrderInterface

Property Details

$browser protected property

protected Browser,Buzz $browser
return Buzz\Browser

$router protected property

protected RouterInterface,Symfony\Component\Routing $router
return Symfony\Component\Routing\RouterInterface