PHP 클래스 Sonata\Component\Payment\Ogone\OgonePayment

저자: hbriand ([email protected])
상속: extends Sonata\Component\Payment\BasePayment
파일 보기 프로젝트 열기: sonata-project/ecommerce 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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