Свойство | Type | Description | |
---|---|---|---|
$router | Symfony\Component\Routing\RouterInterface | ||
$translator | Symfony\Component\Translation\TranslatorInterface | ||
$webConnectorProvider | Object that manages http client. |
Méthode | Description | |
---|---|---|
__construct ( Symfony\Component\Routing\RouterInterface $router, Symfony\Component\Translation\TranslatorInterface $translator = null ) | ||
applyTransactionId ( Sonata\Component\Payment\TransactionInterface $transaction ) | return the transaction_id sent by the bank. | |
checkPaypalFiles ( ) | Check openssl configuration, throw an RuntimeException if something is wrong. | |
encryptViaBuffer ( $hash ) : string | Encrypt paypal information using openssl with a buffer. | |
encryptViaFile ( $hash ) : string | Encrypt paypal information using openssl with a temporary file. | |
getOrderReference ( Sonata\Component\Payment\TransactionInterface $transaction ) : string | return the order reference from the transaction object. | |
getPaymentStatusList ( ) : array | return the status list available from paypal system. | |
getWebConnectorProvider ( ) : unknown | ||
isRequestValid ( Sonata\Component\Payment\TransactionInterface $transaction ) : boolean | return true if the request contains a valid check parameter. | |
setWebConnectorProvider ( unknown $webConnectorProvider ) |
public __construct ( Symfony\Component\Routing\RouterInterface $router, Symfony\Component\Translation\TranslatorInterface $translator = null ) | ||
$router | Symfony\Component\Routing\RouterInterface | |
$translator | Symfony\Component\Translation\TranslatorInterface |
public applyTransactionId ( Sonata\Component\Payment\TransactionInterface $transaction ) | ||
$transaction | Sonata\Component\Payment\TransactionInterface |
public checkPaypalFiles ( ) |
public encryptViaBuffer ( $hash ) : string | ||
$hash | ||
Résultat | string | the encrypted data |
public encryptViaFile ( $hash ) : string | ||
$hash | ||
Résultat | string | the encrypted data |
public getOrderReference ( Sonata\Component\Payment\TransactionInterface $transaction ) : string | ||
$transaction | Sonata\Component\Payment\TransactionInterface | |
Résultat | string |
public static getPaymentStatusList ( ) : array | ||
Résultat | array |
public getWebConnectorProvider ( ) : unknown | ||
Résultat | unknown | $webConnectorProvider |
public isRequestValid ( Sonata\Component\Payment\TransactionInterface $transaction ) : boolean | ||
$transaction | Sonata\Component\Payment\TransactionInterface | |
Résultat | boolean |
public setWebConnectorProvider ( unknown $webConnectorProvider ) | ||
$webConnectorProvider | unknown |
protected RouterInterface,Symfony\Component\Routing $router | ||
Résultat | Symfony\Component\Routing\RouterInterface |
protected TranslatorInterface,Symfony\Component\Translation $translator | ||
Résultat | Symfony\Component\Translation\TranslatorInterface |