PHP Класс Sonata\Component\Payment\Ogone\OgonePayment

Автор: hbriand ([email protected])
Наследование: extends Sonata\Component\Payment\BasePayment
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$router Symfony\Component\Routing\RouterInterface
$templating Symfony\Bundle\FrameworkBundle\Templating\EngineInterface

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

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

Защищенные методы

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

Описание методов

__construct() публичный Метод

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 applyTransactionId ( Sonata\Component\Payment\TransactionInterface $transaction )
$transaction Sonata\Component\Payment\TransactionInterface

compareOrderToParams() защищенный Метод

Tells if $order matches $params.
protected compareOrderToParams ( Sonata\Component\Order\OrderInterface $order, array $params ) : boolean
$order Sonata\Component\Order\OrderInterface
$params array
Результат boolean

encodeString() публичный Метод

public encodeString ( $string )

generateAbsoluteUrlFromOption() защищенный Метод

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() защищенный Метод

Gets formatted address lines from $order.
protected getAddress ( Sonata\Component\Order\OrderInterface $order ) : string
$order Sonata\Component\Order\OrderInterface
Результат string

getFormParameters() защищенный Метод

Returns form parameters for sendbank.
protected getFormParameters ( Sonata\Component\Order\OrderInterface $order ) : array
$order Sonata\Component\Order\OrderInterface
Результат array

getOperation() защищенный Метод

Gets operation from options.
protected getOperation ( ) : string
Результат string

getOrderReference() публичный Метод

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

getShaSign() защищенный Метод

Signs the payment transaction.
protected getShaSign ( array $params, boolean $out = false ) : string
$params array
$out boolean Should we use the out sha key?
Результат string

handleError() публичный Метод

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

isAddableProduct() публичный Метод

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

isBasketValid() публичный Метод

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

isCallbackValid() публичный Метод

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

isRequestValid() публичный Метод

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

sendConfirmationReceipt() публичный Метод

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

sendbank() публичный Метод

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

Описание свойств

$router защищенное свойство

protected RouterInterface,Symfony\Component\Routing $router
Результат Symfony\Component\Routing\RouterInterface

$templating защищенное свойство

protected EngineInterface,Symfony\Bundle\FrameworkBundle\Templating $templating
Результат Symfony\Bundle\FrameworkBundle\Templating\EngineInterface