PHP Class Paranoia\Payment\Adapter\Gvp

Inheritance: extends AdapterAbstract
Mostra file Open project: paranoiaproject/paranoia

Protected Properties

Property Type Description
$transactionMap array

Protected Methods

Method Description
buildCancelRequest ( Request $request )
buildPointQueryRequest ( Request $request )
buildPointUsageRequest ( Request $request )
buildPostAuthorizationRequest ( Request $request )
buildPreAuthorizationRequest ( Request $request )
buildRefundRequest ( Request $request )
buildRequest ( Request $request, $requestBuilder )
buildSaleRequest ( Request $request )
formatAmount ( $amount, $reverse = false )
formatExpireDate ( $month, $year )
parseResponse ( $rawResponse, $transactionType )

Private Methods

Method Description
buildBaseRequest ( Request $request, string $transactionType ) : array builds request base with common arguments.
buildCard ( Request $request ) : array builds card section of request.
buildCustomer ( ) : array builds customer section of request.
buildOrder ( Request $request ) : array builds order section of request.
buildTerminal ( Request $request, string $transactionType ) : array builds terminal section of request.
buildTransaction ( Request $request, string $transactionType, integer $cardHolderPresentCode, string $originalRetrefNum = null ) : array builds terminal section of request.
getApiCredentialsByRequest ( string $transactionType ) : array returns api credentials by transaction type of request.
getSecurityHash ( string $password ) : string returns security hash for using in transaction hash.
getTransactionHash ( Request $request, string $password, string $transactionType ) : string returns transaction hash for using in transaction request.
isAmountRequired ( string $transactionType ) : boolean returns boolean true, when amount field is required for request transaction type.
isCardNumberRequired ( string $transactionType ) : boolean returns boolean true, when card number field is required for request transaction type.

Method Details

buildCancelRequest() protected method

See also: Paranoia\Payment\Adapter\AdapterAbstract::buildCancelRequest()
protected buildCancelRequest ( Request $request )
$request Paranoia\Payment\Request

buildPointQueryRequest() protected method

See also: Paranoia\Payment\Adapter\AdapterAbstract::parseResponse()
protected buildPointQueryRequest ( Request $request )
$request Paranoia\Payment\Request

buildPointUsageRequest() protected method

See also: Paranoia\Payment\Adapter\AdapterAbstract::buildPointUsageRequest()
protected buildPointUsageRequest ( Request $request )
$request Paranoia\Payment\Request

buildPostAuthorizationRequest() protected method

See also: Paranoia\Payment\Adapter\AdapterAbstract::buildPostAuthorizationRequest()
protected buildPostAuthorizationRequest ( Request $request )
$request Paranoia\Payment\Request

buildPreAuthorizationRequest() protected method

See also: Paranoia\Payment\Adapter\AdapterAbstract::buildPreauthorizationRequest()
protected buildPreAuthorizationRequest ( Request $request )
$request Paranoia\Payment\Request

buildRefundRequest() protected method

See also: Paranoia\Payment\Adapter\AdapterAbstract::buildRefundRequest()
protected buildRefundRequest ( Request $request )
$request Paranoia\Payment\Request

buildRequest() protected method

See also: Paranoia\Payment\Adapter\AdapterAbstract::buildRequest()
protected buildRequest ( Request $request, $requestBuilder )
$request Paranoia\Payment\Request

buildSaleRequest() protected method

See also: Paranoia\Payment\Adapter\AdapterAbstract::buildSaleRequest()
protected buildSaleRequest ( Request $request )
$request Paranoia\Payment\Request

formatAmount() protected method

See also: Paranoia\Payment\Adapter\AdapterAbstract::formatAmount()
protected formatAmount ( $amount, $reverse = false )

formatExpireDate() protected method

See also: Paranoia\Payment\Adapter\AdapterAbstract::formatExpireDate()
protected formatExpireDate ( $month, $year )

parseResponse() protected method

See also: Paranoia\Payment\Adapter\AdapterAbstract::parseResponse()
protected parseResponse ( $rawResponse, $transactionType )

Property Details

$transactionMap protected_oe property

protected array $transactionMap
return array