PHP 클래스 Paranoia\Payment\Adapter\AdapterAbstract

파일 보기 프로젝트 열기: paranoiaproject/paranoia

보호된 프로퍼티들

프로퍼티 타입 설명
$configuration Paranoia\Configuration\AbstractConfiguration
$currencyCodes array
$dispatcher Symfony\Component\EventDispatcher\EventDispatcher
$transactionMap array

공개 메소드들

메소드 설명
__construct ( AbstractConfiguration $configuration )
cancel ( Request $request ) : Paranoia\Payment\Response\PaymentResponse
pointQuery ( Request $request ) : Paranoia\Payment\Response\PaymentResponse
pointUsage ( Request $request ) : Paranoia\Payment\Response\PaymentResponse
postAuthorization ( Request $request ) : Paranoia\Payment\Response\PaymentResponse
preAuthorization ( Request $request ) : Paranoia\Payment\Response\PaymentResponse
refund ( Request $request ) : Paranoia\Payment\Response\PaymentResponse
sale ( Request $request ) : Paranoia\Payment\Response\PaymentResponse
setConfiguration ( AbstractConfiguration $configuration )

보호된 메소드들

메소드 설명
buildCancelRequest ( Request $request ) : mixed build request data for cancel transaction.
buildPostAuthorizationRequest ( Request $request ) : mixed build request data for postauthorization transaction.
buildPreAuthorizationRequest ( Request $request ) : mixed build request data for preauthorization transaction.
buildRefundRequest ( Request $request ) : mixed build request data for refund transaction.
buildRequest ( Request $request, string $requestBuilder ) : mixed build complete raw data for the specified request.
buildSaleRequest ( Request $request ) : mixed build request data for sale transaction.
formatAmount ( string | float $amount, boolean $reverse = false ) : string returns formatted amount with doth or without doth.
formatCurrency ( string $currency ) : integer formats the specified string currency code by iso currency codes.
formatExpireDate ( integer $month, integer $year ) : string formats expire date as month/year
formatInstallment ( integer $installment ) : string returns formatted installment amount
formatOrderId ( $orderId ) : mixed returns formatted order number.
getDispatcher ( ) : EventDispatcher
getProviderTransactionType ( string $transactionType ) : string returns transaction code by expected provider.
maskRequest ( string $rawRequest ) : string mask some critical information in transaction request.
parseResponse ( string $rawResponse, string $transactionType ) : Paranoia\Payment\Response\PaymentResponse parses response from returned provider.
sendRequest ( string $url, mixed $data, array $options = null ) : mixed Makes http request to remote host.

메소드 상세

__construct() 공개 메소드

public __construct ( AbstractConfiguration $configuration )
$configuration Paranoia\Configuration\AbstractConfiguration

buildCancelRequest() 추상적인 보호된 메소드

build request data for cancel transaction.
abstract protected buildCancelRequest ( Request $request ) : mixed
$request Paranoia\Payment\Request
리턴 mixed

buildPostAuthorizationRequest() 추상적인 보호된 메소드

build request data for postauthorization transaction.
abstract protected buildPostAuthorizationRequest ( Request $request ) : mixed
$request Paranoia\Payment\Request
리턴 mixed

buildPreAuthorizationRequest() 추상적인 보호된 메소드

build request data for preauthorization transaction.
abstract protected buildPreAuthorizationRequest ( Request $request ) : mixed
$request Paranoia\Payment\Request
리턴 mixed

buildRefundRequest() 추상적인 보호된 메소드

build request data for refund transaction.
abstract protected buildRefundRequest ( Request $request ) : mixed
$request Paranoia\Payment\Request
리턴 mixed

buildRequest() 추상적인 보호된 메소드

build complete raw data for the specified request.
abstract protected buildRequest ( Request $request, string $requestBuilder ) : mixed
$request Paranoia\Payment\Request
$requestBuilder string
리턴 mixed

buildSaleRequest() 추상적인 보호된 메소드

build request data for sale transaction.
abstract protected buildSaleRequest ( Request $request ) : mixed
$request Paranoia\Payment\Request
리턴 mixed

cancel() 공개 메소드

public cancel ( Request $request ) : Paranoia\Payment\Response\PaymentResponse
$request Paranoia\Payment\Request
리턴 Paranoia\Payment\Response\PaymentResponse

formatAmount() 보호된 메소드

formatted number returns amount default without doth.
protected formatAmount ( string | float $amount, boolean $reverse = false ) : string
$amount string | float
$reverse boolean
리턴 string

formatCurrency() 보호된 메소드

formats the specified string currency code by iso currency codes.
protected formatCurrency ( string $currency ) : integer
$currency string
리턴 integer

formatExpireDate() 보호된 메소드

formats expire date as month/year
protected formatExpireDate ( integer $month, integer $year ) : string
$month integer
$year integer
리턴 string

formatInstallment() 보호된 메소드

returns formatted installment amount
protected formatInstallment ( integer $installment ) : string
$installment integer
리턴 string

formatOrderId() 보호된 메소드

returns formatted order number.
protected formatOrderId ( $orderId ) : mixed
$orderId
리턴 mixed

getDispatcher() 보호된 메소드

protected getDispatcher ( ) : EventDispatcher
리턴 Symfony\Component\EventDispatcher\EventDispatcher

getProviderTransactionType() 보호된 메소드

returns transaction code by expected provider.
protected getProviderTransactionType ( string $transactionType ) : string
$transactionType string
리턴 string

maskRequest() 보호된 메소드

mask some critical information in transaction request.
protected maskRequest ( string $rawRequest ) : string
$rawRequest string
리턴 string

parseResponse() 추상적인 보호된 메소드

parses response from returned provider.
abstract protected parseResponse ( string $rawResponse, string $transactionType ) : Paranoia\Payment\Response\PaymentResponse
$rawResponse string
$transactionType string
리턴 Paranoia\Payment\Response\PaymentResponse

pointQuery() 공개 메소드

public pointQuery ( Request $request ) : Paranoia\Payment\Response\PaymentResponse
$request Paranoia\Payment\Request
리턴 Paranoia\Payment\Response\PaymentResponse

pointUsage() 공개 메소드

public pointUsage ( Request $request ) : Paranoia\Payment\Response\PaymentResponse
$request Paranoia\Payment\Request
리턴 Paranoia\Payment\Response\PaymentResponse

postAuthorization() 공개 메소드

public postAuthorization ( Request $request ) : Paranoia\Payment\Response\PaymentResponse
$request Paranoia\Payment\Request
리턴 Paranoia\Payment\Response\PaymentResponse

preAuthorization() 공개 메소드

public preAuthorization ( Request $request ) : Paranoia\Payment\Response\PaymentResponse
$request Paranoia\Payment\Request
리턴 Paranoia\Payment\Response\PaymentResponse

refund() 공개 메소드

public refund ( Request $request ) : Paranoia\Payment\Response\PaymentResponse
$request Paranoia\Payment\Request
리턴 Paranoia\Payment\Response\PaymentResponse

sale() 공개 메소드

public sale ( Request $request ) : Paranoia\Payment\Response\PaymentResponse
$request Paranoia\Payment\Request
리턴 Paranoia\Payment\Response\PaymentResponse

sendRequest() 보호된 메소드

Makes http request to remote host.
protected sendRequest ( string $url, mixed $data, array $options = null ) : mixed
$url string
$data mixed
$options array
리턴 mixed

setConfiguration() 공개 메소드

public setConfiguration ( AbstractConfiguration $configuration )
$configuration Paranoia\Configuration\AbstractConfiguration

프로퍼티 상세

$configuration 보호되어 있는 프로퍼티

protected AbstractConfiguration,Paranoia\Configuration $configuration
리턴 Paranoia\Configuration\AbstractConfiguration

$currencyCodes 보호되어 있는 프로퍼티

protected array $currencyCodes
리턴 array

$dispatcher 보호되어 있는 프로퍼티

protected EventDispatcher,Symfony\Component\EventDispatcher $dispatcher
리턴 Symfony\Component\EventDispatcher\EventDispatcher

$transactionMap 보호되어 있는 프로퍼티

protected array $transactionMap
리턴 array