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
파일 보기 프로젝트 열기: sonata-project/ecommerce

보호된 프로퍼티들

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