Bitrix API

ServiceHandler extends BaseServiceHandler implements RestrictableServiceHandler

AbstractYes

Table of Contents

Interfaces

RestrictableServiceHandler

Constants

ACTIVE_URL  = 'active'
STREAM  = 1
STRING  = 2
TEST_URL  = 'test'

Methods

__construct()  : mixed
BaseServiceHandler constructor.
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>
getHandlerModeList()  : array<string|int, mixed>
getHandlerType()  : string
getIndicativeFields()  : array<string|int, mixed>
getParamsBusValue()  : array<string|int, mixed>
getPaymentIdFromRequest()  : mixed
getRestrictionList()  : RestrictionInfoCollection
Returns list of restrictions that installed on service add
initiatePay()  : ServiceResult
isClone()  : bool
isMyResponse()  : bool
isTuned()  : bool
OnEndBufferContent()  : mixed
processRequest()  : ServiceResult
sendResponse()  : mixed
setExtraParams()  : mixed
setInitiateMode()  : mixed
showTemplate()  : ServiceResult

Constants

Methods

findMyDataRefundablePage()

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
string

getCurrencyList()

public abstract 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>

getHandlerModeList()

public static getHandlerModeList() : array<string|int, mixed>
Return values
array<string|int, mixed>

getIndicativeFields()

public static getIndicativeFields() : array<string|int, mixed>
Return values
array<string|int, mixed>

getParamsBusValue()

public getParamsBusValue([Payment $payment = null ]) : array<string|int, mixed>
Parameters
$payment : Payment = null
Return values
array<string|int, mixed>

getPaymentIdFromRequest()

public abstract getPaymentIdFromRequest(Request $request) : mixed
Parameters
$request : Request

isMyResponse()

public static isMyResponse(Request $request, int $paySystemId) : bool
Parameters
$request : Request
$paySystemId : int
Return values
bool

OnEndBufferContent()

public OnEndBufferContent(mixed &$content) : mixed
Parameters
$content : mixed

setExtraParams()

public setExtraParams(array<string|int, mixed> $values) : mixed
Parameters
$values : array<string|int, mixed>

setInitiateMode()

public setInitiateMode(int $mode) : mixed
Parameters
$mode : int

        
On this page

Search results