PHP Class Paranoia\Payment\Adapter\Posnet

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

Protected Properties

Property Type Description
$currencyCodes array
$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 ) {@inheritdoc} Posnet tutar değerinde nokta istemiyor. Örnek:15.00TL için 1500 gönderilmesi gerekiyor.
formatExpireDate ( $month, $year ) {@inheritdoc} Posnet Son Kullanma Tarihini YYMM formatında istiyor. Örnek:03/2014 için 1403
formatInstallment ( $installment ) {@inheritdoc} Postnet Taksit sayısında daima 2 rakam gönderilmesini istiyor.
formatOrderId ( $orderId ) : mixed | string
parseResponse ( $rawResponse, $transactionType )

Private Methods

Method Description
buildBaseRequest ( ) : array builds request base with common arguments.

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

{@inheritdoc} Posnet tutar değerinde nokta istemiyor. Örnek:15.00TL için 1500 gönderilmesi gerekiyor.
See also: Paranoia\Payment\Adapter\AdapterAbstract::formatAmount()
protected formatAmount ( $amount, $reverse = false )

formatExpireDate() protected method

{@inheritdoc} Posnet Son Kullanma Tarihini YYMM formatında istiyor. Örnek:03/2014 için 1403
See also: Paranoia\Payment\Adapter\AdapterAbstract::formatExpireDate()
protected formatExpireDate ( $month, $year )

formatInstallment() protected method

{@inheritdoc} Postnet Taksit sayısında daima 2 rakam gönderilmesini istiyor.
See also: Paranoia\Payment\Adapter\AdapterAbstract::formatInstallment()
protected formatInstallment ( $installment )

formatOrderId() protected method

protected formatOrderId ( $orderId ) : mixed | string
$orderId
return mixed | string

parseResponse() protected method

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

Property Details

$currencyCodes protected_oe property

protected array $currencyCodes
return array

$transactionMap protected_oe property

protected array $transactionMap
return array