PHP Класс Sonata\Component\Payment\BasePaypal

Paypal Encryption https://www.paypal.com/IntegrationCenter/ic_button-encryption.html#Createanencryptedbutton openssl genrsa -out my-prvkey.pem 1024 openssl req -new -key my-prvkey.pem -x509 -days 365 -out my-pubcert.pem *
Автор: Thomas Rabaix ([email protected])
Наследование: extends BasePayment
Показать файл Открыть проект

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

Свойство Тип Описание
$router Symfony\Component\Routing\RouterInterface
$translator Symfony\Component\Translation\TranslatorInterface
$webConnectorProvider Object that manages http client.

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

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

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

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

public __construct ( Symfony\Component\Routing\RouterInterface $router, Symfony\Component\Translation\TranslatorInterface $translator = null )
$router Symfony\Component\Routing\RouterInterface
$translator Symfony\Component\Translation\TranslatorInterface

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

return the transaction_id sent by the bank.
public applyTransactionId ( Sonata\Component\Payment\TransactionInterface $transaction )
$transaction Sonata\Component\Payment\TransactionInterface

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

Check openssl configuration, throw an RuntimeException if something is wrong.
public checkPaypalFiles ( )

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

Encrypt paypal information using openssl with a buffer.
public encryptViaBuffer ( $hash ) : string
$hash
Результат string the encrypted data

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

Encrypt paypal information using openssl with a temporary file.
public encryptViaFile ( $hash ) : string
$hash
Результат string the encrypted data

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

return the order reference from the transaction object.
public getOrderReference ( Sonata\Component\Payment\TransactionInterface $transaction ) : string
$transaction Sonata\Component\Payment\TransactionInterface
Результат string

getPaymentStatusList() публичный статический Метод

return the status list available from paypal system.
public static getPaymentStatusList ( ) : array
Результат array

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

public getWebConnectorProvider ( ) : unknown
Результат unknown $webConnectorProvider

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

return true if the request contains a valid check parameter.
public isRequestValid ( Sonata\Component\Payment\TransactionInterface $transaction ) : boolean
$transaction Sonata\Component\Payment\TransactionInterface
Результат boolean

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

public setWebConnectorProvider ( unknown $webConnectorProvider )
$webConnectorProvider unknown

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

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

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

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

protected TranslatorInterface,Symfony\Component\Translation $translator
Результат Symfony\Component\Translation\TranslatorInterface

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

Object that manages http client.
protected $webConnectorProvider