Property | Type | Description | |
---|---|---|---|
$router | Symfony\Component\Routing\RouterInterface | ||
$translator | Symfony\Component\Translation\TranslatorInterface | ||
$webConnectorProvider | Object that manages http client. |
Method | 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 | ||
return | string | the encrypted data |
public encryptViaFile ( $hash ) : string | ||
$hash | ||
return | string | the encrypted data |
public getOrderReference ( Sonata\Component\Payment\TransactionInterface $transaction ) : string | ||
$transaction | Sonata\Component\Payment\TransactionInterface | |
return | string |
public static getPaymentStatusList ( ) : array | ||
return | array |
public getWebConnectorProvider ( ) : unknown | ||
return | unknown | $webConnectorProvider |
public isRequestValid ( Sonata\Component\Payment\TransactionInterface $transaction ) : boolean | ||
$transaction | Sonata\Component\Payment\TransactionInterface | |
return | boolean |
public setWebConnectorProvider ( unknown $webConnectorProvider ) | ||
$webConnectorProvider | unknown |
protected RouterInterface,Symfony\Component\Routing $router | ||
return | Symfony\Component\Routing\RouterInterface |
protected TranslatorInterface,Symfony\Component\Translation $translator | ||
return | Symfony\Component\Translation\TranslatorInterface |