CompatibilityHandler extends ServiceHandler implements ICheckable
Class CompatibilityHandler
Table of Contents
Interfaces
Constants
- ACTIVE_URL = 'active'
- STREAM = 1
- STRING = 2
- TEST_URL = 'test'
Methods
- __construct() : mixed
- BaseServiceHandler constructor.
- check() : string|bool
- createClone() : BaseServiceHandler
- creditNoDemand() : ServiceResult
- debitNoDemand() : ServiceResult
- findMyDataRefundablePage() : array<string|int, mixed>
- getClientType() : string
- The type of client that the handler can work with
- getCurrencyList() : array<string|int, mixed>
- getDemoParams() : array<string|int, mixed>
- getDescription() : array<string|int, mixed>
- getEntityIds() : mixed
- getHandlerModeList() : array<string|int, mixed>
- getHandlerType() : string
- getIndicativeFields() : array<string|int, mixed>
- getParamsBusValue() : mixed
- getPaymentIdFromRequest() : mixed
- getPrice() : mixed
- getRestrictionList() : RestrictionInfoCollection
- Returns list of restrictions that installed on service add
- initiatePay() : ServiceResult
- isCheckableCompatibility() : bool
- isClone() : bool
- isMyResponse() : bool
- isPayableCompatibility() : bool
- isTuned() : bool
- OnEndBufferContent() : mixed
- processRequest() : string
- sendResponse() : mixed
- setExtraParams() : mixed
- setInitiateMode() : mixed
- showTemplate() : ServiceResult
Constants
ACTIVE_URL
public
mixed
ACTIVE_URL
= 'active'
STREAM
public
mixed
STREAM
= 1
STRING
public
mixed
STRING
= 2
TEST_URL
public
mixed
TEST_URL
= 'test'
Methods
__construct()
BaseServiceHandler constructor.
public
__construct(mixed $type, Service $service) : mixed
Parameters
- $type : mixed
- $service : Service
check()
public
check(Payment $payment) : string|bool
Parameters
- $payment : Payment
Return values
string|boolcreateClone()
public
createClone(SplObjectStorage $cloneEntity) : BaseServiceHandler
Parameters
- $cloneEntity : SplObjectStorage
Return values
BaseServiceHandlercreditNoDemand()
public
creditNoDemand(Payment $payment) : ServiceResult
Parameters
- $payment : Payment
Return values
ServiceResultdebitNoDemand()
public
debitNoDemand(Payment $payment) : ServiceResult
Parameters
- $payment : Payment
Return values
ServiceResultfindMyDataRefundablePage()
public
static findMyDataRefundablePage(array<string|int, mixed> $paySystemList) : array<string|int, mixed>
Parameters
- $paySystemList : array<string|int, mixed>
Return values
array<string|int, mixed>getClientType()
The type of client that the handler can work with
public
getClientType(string $psMode) : string
If, depending on PS_MODE, the handler can work with different types of clients, then you can implement validation in a similar way:
public function getClientType($psMode)
{
if ($psMode === self::MODE_ALFABANK)
{
return ClientType::B2B;
}
return ClientType::B2C;
}
Parameters
- $psMode : string
-
pay system type
Return values
stringgetCurrencyList()
public
getCurrencyList() : array<string|int, mixed>
Return values
array<string|int, mixed>getDemoParams()
public
getDemoParams() : array<string|int, mixed>
Return values
array<string|int, mixed>getDescription()
public
getDescription() : array<string|int, mixed>
Return values
array<string|int, mixed>getEntityIds()
public
getEntityIds(Request $request) : mixed
Parameters
- $request : Request
getHandlerModeList()
public
static getHandlerModeList() : array<string|int, mixed>
Return values
array<string|int, mixed>getHandlerType()
public
getHandlerType() : string
Return values
stringgetIndicativeFields()
public
static getIndicativeFields() : array<string|int, mixed>
Return values
array<string|int, mixed>getParamsBusValue()
public
getParamsBusValue([Payment $payment = null ]) : mixed
Parameters
- $payment : Payment = null
getPaymentIdFromRequest()
public
getPaymentIdFromRequest(Request $request) : mixed
Parameters
- $request : Request
getPrice()
public
getPrice(Payment $payment) : mixed
Parameters
- $payment : Payment
getRestrictionList()
Returns list of restrictions that installed on service add
public
getRestrictionList() : RestrictionInfoCollection
Return values
RestrictionInfoCollectioninitiatePay()
public
initiatePay(Payment $payment[, Request|null $request = null ]) : ServiceResult
Parameters
- $payment : Payment
- $request : Request|null = null
Return values
ServiceResultisCheckableCompatibility()
public
isCheckableCompatibility() : bool
Return values
boolisClone()
public
isClone() : bool
Return values
boolisMyResponse()
public
static isMyResponse(Request $request, int $paySystemId) : bool
Parameters
- $request : Request
- $paySystemId : int
Return values
boolisPayableCompatibility()
public
isPayableCompatibility() : bool
Return values
boolisTuned()
public
isTuned() : bool
Return values
boolOnEndBufferContent()
public
OnEndBufferContent(mixed &$content) : mixed
Parameters
- $content : mixed
processRequest()
public
processRequest(Payment $payment, Request $request) : string
Parameters
- $payment : Payment
- $request : Request
Return values
stringsendResponse()
public
sendResponse(ServiceResult $result, Request $request) : mixed
Parameters
- $result : ServiceResult
- $request : Request
setExtraParams()
public
setExtraParams(array<string|int, mixed> $values) : mixed
Parameters
- $values : array<string|int, mixed>
setInitiateMode()
public
setInitiateMode(int $mode) : mixed
Parameters
- $mode : int
showTemplate()
public
showTemplate([Payment|null $payment = null ][, string $template = '' ]) : ServiceResult
Parameters
- $payment : Payment|null = null
- $template : string = ''