메소드 | 설명 | |
---|---|---|
applyTransactionId ( Sonata\Component\Payment\TransactionInterface $transaction ) | return the transaction id from the bank. | |
callback ( Sonata\Component\Payment\TransactionInterface $transaction ) : |
||
encodeString ( string $value ) : string | encode value for the bank. | |
getCode ( ) : string | ||
getName ( ) : string | ||
getOrderReference ( Sonata\Component\Payment\TransactionInterface $transaction ) : string | return the order reference from the transaction. | |
getTransformer ( $name ) : |
Gets the transformer for $name. | |
handleError ( Sonata\Component\Payment\TransactionInterface $transaction ) : |
Method called when an error occurs. | |
isAddableProduct ( Sonata\Component\Basket\BasketInterface $basket, Sonata\Component\Product\ProductInterface $product ) | return true if the product can be added to the basket. | |
isBasketValid ( Sonata\Component\Basket\BasketInterface $basket ) : boolean | return true is the basket is valid for the current bank gateway. | |
isCallbackValid ( Sonata\Component\Payment\TransactionInterface $transaction ) : boolean | ||
isRequestValid ( Sonata\Component\Payment\TransactionInterface $transaction ) : boolean | Test if the request variables are valid for the current request. | |
sendConfirmationReceipt ( Sonata\Component\Payment\TransactionInterface $transaction ) : Response,,Symfony\Component\HttpFoundation | Send post back confirmation to the bank when the bank callback the site. | |
sendbank ( Sonata\Component\Order\OrderInterface $order ) : |
Send information to the bank, this method should handle everything when called. |
public applyTransactionId ( Sonata\Component\Payment\TransactionInterface $transaction ) | ||
$transaction | Sonata\Component\Payment\TransactionInterface |
public callback ( Sonata\Component\Payment\TransactionInterface $transaction ) : |
||
$transaction | Sonata\Component\Payment\TransactionInterface | |
리턴 |
public encodeString ( string $value ) : string | ||
$value | string | |
리턴 | string | the encoded value |
public getOrderReference ( Sonata\Component\Payment\TransactionInterface $transaction ) : string | ||
$transaction | Sonata\Component\Payment\TransactionInterface | |
리턴 | string |
public getTransformer ( $name ) : |
||
$name | ||
리턴 |
public handleError ( Sonata\Component\Payment\TransactionInterface $transaction ) : |
||
$transaction | Sonata\Component\Payment\TransactionInterface | |
리턴 |
public isAddableProduct ( Sonata\Component\Basket\BasketInterface $basket, Sonata\Component\Product\ProductInterface $product ) | ||
$basket | Sonata\Component\Basket\BasketInterface | |
$product | Sonata\Component\Product\ProductInterface |
public isBasketValid ( Sonata\Component\Basket\BasketInterface $basket ) : boolean | ||
$basket | Sonata\Component\Basket\BasketInterface | |
리턴 | boolean |
public isCallbackValid ( Sonata\Component\Payment\TransactionInterface $transaction ) : boolean | ||
$transaction | Sonata\Component\Payment\TransactionInterface | |
리턴 | boolean | true if callback ok else false |
public isRequestValid ( Sonata\Component\Payment\TransactionInterface $transaction ) : boolean | ||
$transaction | Sonata\Component\Payment\TransactionInterface | |
리턴 | boolean | true if all parameter are ok |
public sendConfirmationReceipt ( Sonata\Component\Payment\TransactionInterface $transaction ) : Response,,Symfony\Component\HttpFoundation | ||
$transaction | Sonata\Component\Payment\TransactionInterface | |
리턴 | Response,,Symfony\Component\HttpFoundation |
public sendbank ( Sonata\Component\Order\OrderInterface $order ) : |
||
$order | Sonata\Component\Order\OrderInterface | |
리턴 |