PHP Class Sonata\Component\Payment\Scellius\ScelliusPayment

Inheritance: extends Sonata\Component\Payment\BasePayment
Show file Open project: sonata-project/ecommerce Class Usage Examples

Protected Properties

Property Type Description
$parameters array
$router Symfony\Component\Routing\RouterInterface
$templating Symfony\Bundle\FrameworkBundle\Templating\EngineInterface
$transactionGenerator Sonata\Component\Payment\Scellius\ScelliusTransactionGeneratorInterface

Public Methods

Method Description
__construct ( Symfony\Component\Routing\RouterInterface $router, Psr\Log\LoggerInterface $logger, Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $templating, Sonata\Component\Payment\Scellius\ScelliusTransactionGeneratorInterface $transactionGenerator, boolean $debug )
applyTransactionId ( Sonata\Component\Payment\TransactionInterface $transaction )
encodeString ( $string )
getBankCodeResponses ( ) : array
getCVVFlags ( ) : array
getCVVResponseCode ( ) : array
getCurrencyList ( ) : array
getLanguage ( Sonata\Component\Order\OrderInterface $order ) : string
getLanguageCodes ( ) : array
getOrderReference ( Sonata\Component\Payment\TransactionInterface $transaction )
getPaymentMeans ( ) : array
getResponseCode ( ) : array
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 )

Private Methods

Method Description
getAmount ( $amount, $currency ) : string
getCurrencyCode ( $currency )
getResponseData ( Sonata\Component\Payment\TransactionInterface $transaction ) : array

Method Details

__construct() public method

public __construct ( Symfony\Component\Routing\RouterInterface $router, Psr\Log\LoggerInterface $logger, Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $templating, Sonata\Component\Payment\Scellius\ScelliusTransactionGeneratorInterface $transactionGenerator, boolean $debug )
$router Symfony\Component\Routing\RouterInterface
$logger Psr\Log\LoggerInterface
$templating Symfony\Bundle\FrameworkBundle\Templating\EngineInterface
$transactionGenerator Sonata\Component\Payment\Scellius\ScelliusTransactionGeneratorInterface
$debug boolean

applyTransactionId() public method

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

encodeString() public method

public encodeString ( $string )

getBankCodeResponses() public static method

public static getBankCodeResponses ( ) : array
return array

getCVVFlags() public static method

public static getCVVFlags ( ) : array
return array

getCVVResponseCode() public static method

public static getCVVResponseCode ( ) : array
return array

getCurrencyList() public static method

public static getCurrencyList ( ) : array
return array

getLanguage() public method

public getLanguage ( Sonata\Component\Order\OrderInterface $order ) : string
$order Sonata\Component\Order\OrderInterface
return string

getLanguageCodes() public static method

public static getLanguageCodes ( ) : array
return array

getOrderReference() public method

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

getPaymentMeans() public static method

public static getPaymentMeans ( ) : array
return array

getResponseCode() public static method

public static getResponseCode ( ) : array
return array

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

$parameters protected property

protected array $parameters
return array

$router protected property

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

$templating protected property

protected EngineInterface,Symfony\Bundle\FrameworkBundle\Templating $templating
return Symfony\Bundle\FrameworkBundle\Templating\EngineInterface

$transactionGenerator protected property

protected ScelliusTransactionGeneratorInterface,Sonata\Component\Payment\Scellius $transactionGenerator
return Sonata\Component\Payment\Scellius\ScelliusTransactionGeneratorInterface