PHP Class Sonata\Component\Payment\Ogone\OgonePayment

Author: hbriand ([email protected])
Inheritance: extends Sonata\Component\Payment\BasePayment
Afficher le fichier Open project: sonata-project/ecommerce Class Usage Examples

Protected Properties

Свойство Type Description
$router Symfony\Component\Routing\RouterInterface
$templating Symfony\Bundle\FrameworkBundle\Templating\EngineInterface

Méthodes publiques

Méthode Description
__construct ( Symfony\Component\Routing\RouterInterface $router, Psr\Log\LoggerInterface $logger, Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $templating, boolean $debug ) Constructor.
applyTransactionId ( Sonata\Component\Payment\TransactionInterface $transaction )
encodeString ( $string )
getOrderReference ( Sonata\Component\Payment\TransactionInterface $transaction )
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 )

Méthodes protégées

Méthode Description
compareOrderToParams ( Sonata\Component\Order\OrderInterface $order, array $params ) : boolean Tells if $order matches $params.
generateAbsoluteUrlFromOption ( string $optionKey, Sonata\Component\Order\OrderInterface $order ) Generates absolute URL for route specified in $optionKey and $order.
getAddress ( Sonata\Component\Order\OrderInterface $order ) : string Gets formatted address lines from $order.
getFormParameters ( Sonata\Component\Order\OrderInterface $order ) : array Returns form parameters for sendbank.
getOperation ( ) : string Gets operation from options.
getShaSign ( array $params, boolean $out = false ) : string Signs the payment transaction.

Method Details

__construct() public méthode

Constructor.
public __construct ( Symfony\Component\Routing\RouterInterface $router, Psr\Log\LoggerInterface $logger, Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $templating, boolean $debug )
$router Symfony\Component\Routing\RouterInterface
$logger Psr\Log\LoggerInterface
$templating Symfony\Bundle\FrameworkBundle\Templating\EngineInterface
$debug boolean

applyTransactionId() public méthode

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

compareOrderToParams() protected méthode

Tells if $order matches $params.
protected compareOrderToParams ( Sonata\Component\Order\OrderInterface $order, array $params ) : boolean
$order Sonata\Component\Order\OrderInterface
$params array
Résultat boolean

encodeString() public méthode

public encodeString ( $string )

generateAbsoluteUrlFromOption() protected méthode

Generates absolute URL for route specified in $optionKey and $order.
protected generateAbsoluteUrlFromOption ( string $optionKey, Sonata\Component\Order\OrderInterface $order )
$optionKey string
$order Sonata\Component\Order\OrderInterface

getAddress() protected méthode

Gets formatted address lines from $order.
protected getAddress ( Sonata\Component\Order\OrderInterface $order ) : string
$order Sonata\Component\Order\OrderInterface
Résultat string

getFormParameters() protected méthode

Returns form parameters for sendbank.
protected getFormParameters ( Sonata\Component\Order\OrderInterface $order ) : array
$order Sonata\Component\Order\OrderInterface
Résultat array

getOperation() protected méthode

Gets operation from options.
protected getOperation ( ) : string
Résultat string

getOrderReference() public méthode

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

getShaSign() protected méthode

Signs the payment transaction.
protected getShaSign ( array $params, boolean $out = false ) : string
$params array
$out boolean Should we use the out sha key?
Résultat string

handleError() public méthode

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

isAddableProduct() public méthode

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

isBasketValid() public méthode

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

isCallbackValid() public méthode

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

isRequestValid() public méthode

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

sendConfirmationReceipt() public méthode

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

sendbank() public méthode

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

Property Details

$router protected_oe property

protected RouterInterface,Symfony\Component\Routing $router
Résultat Symfony\Component\Routing\RouterInterface

$templating protected_oe property

protected EngineInterface,Symfony\Bundle\FrameworkBundle\Templating $templating
Résultat Symfony\Bundle\FrameworkBundle\Templating\EngineInterface