Service implements RestrictableService
Class Service
Table of Contents
Interfaces
Constants
- EVENT_BEFORE_ON_INITIATE_PAY = 'onSalePsBeforeInitiatePay'
- EVENT_INITIATE_PAY_ERROR = 'onSalePsInitiatePayError'
- EVENT_INITIATE_PAY_SUCCESS = 'onSalePsInitiatePaySuccess'
- EVENT_ON_AFTER_PROCESS_REQUEST = 'OnSaleAfterPsServiceProcessRequest'
- EVENT_ON_BEFORE_PAYMENT_PAID = 'OnSalePsServiceProcessRequestBeforePaid'
- PAY_SYSTEM_PREFIX = 'PAYSYSTEM_'
Methods
- __construct() : mixed
- Service constructor.
- basketButtonAction() : mixed
- cancel() : ServiceResult
- cancelRecurrent() : ServiceResult
- canPrintCheck() : bool
- canPrintCheckSelf() : bool
- check() : ServiceResult
- confirm() : ServiceResult
- createClone() : Service
- creditNoDemand() : ServiceResult
- debitNoDemand() : ServiceResult
- getCashboxClass() : string
- Returns class name of cashbox for pay system
- getClientType() : string
- The type of client that the payment system can work with
- getClientTypeFromHandler() : string
- The type of client that the handler can work with
- getConsumerName() : string
- getContext() : Context
- getCurrency() : array<string|int, mixed>
- getDemoParams() : array<string|int, mixed>
- getField() : mixed
- getFieldsValues() : array<string|int, mixed>
- getHandlerDescription() : array<string|int, mixed>
- getParamsBusValue() : array<string|int, mixed>
- getPaymentPrice() : mixed
- getPdf() : mixed
- getPdfContent() : mixed
- getPrePaymentProps() : mixed
- getServiceId() : int
- getStartupRestrictions() : RestrictionInfoCollection
- initiatePay() : ServiceResult
- initPrePayment() : mixed
- isAffordDocumentGeneratePdf() : bool
- isAffordPdf() : bool
- isAllowEditPayment() : bool
- isBlockable() : bool
- isCash() : bool
- isCheckable() : bool
- isClone() : bool
- isCustom() : bool
- isFiscalizationAware() : bool
- Returns true if handler extends IFiscalizationAware interface
- isFiscalizationEnabled() : bool
- Returns indicator showing if fiscalization is enabled on the payment system side
- isPayable() : bool
- isPdfGenerated() : mixed
- isPrePayable() : bool
- isRecurring() : bool
- isRefundable() : bool
- isSupportPrintCheck() : bool
- Returns true if handler extends ISupportPrintCheck interface
- isTuned() : bool
- payOrderByPrePayment() : mixed
- processRequest() : Result
- refund() : ServiceResult|Result
- registerCallbackOnGenerate() : mixed
- repeatRecurrent() : ServiceResult
- setOrderDataForPrePayment() : mixed
- setTemplateMode() : mixed
- setTemplateParams() : mixed
- showTemplate() : ServiceResult
Constants
EVENT_BEFORE_ON_INITIATE_PAY
public
mixed
EVENT_BEFORE_ON_INITIATE_PAY
= 'onSalePsBeforeInitiatePay'
EVENT_INITIATE_PAY_ERROR
public
mixed
EVENT_INITIATE_PAY_ERROR
= 'onSalePsInitiatePayError'
EVENT_INITIATE_PAY_SUCCESS
public
mixed
EVENT_INITIATE_PAY_SUCCESS
= 'onSalePsInitiatePaySuccess'
EVENT_ON_AFTER_PROCESS_REQUEST
public
mixed
EVENT_ON_AFTER_PROCESS_REQUEST
= 'OnSaleAfterPsServiceProcessRequest'
EVENT_ON_BEFORE_PAYMENT_PAID
public
mixed
EVENT_ON_BEFORE_PAYMENT_PAID
= 'OnSalePsServiceProcessRequestBeforePaid'
PAY_SYSTEM_PREFIX
public
mixed
PAY_SYSTEM_PREFIX
= 'PAYSYSTEM_'
Methods
__construct()
Service constructor.
public
__construct(mixed $fields) : mixed
Parameters
- $fields : mixed
Tags
basketButtonAction()
public
basketButtonAction([array<string|int, mixed> $orderData = array() ]) : mixed
Parameters
- $orderData : array<string|int, mixed> = array()
Tags
cancel()
public
cancel(Payment $payment) : ServiceResult
Parameters
- $payment : Payment
Tags
Return values
ServiceResultcancelRecurrent()
public
cancelRecurrent(Payment $payment[, Request|null $request = null ]) : ServiceResult
Parameters
- $payment : Payment
- $request : Request|null = null
Return values
ServiceResultcanPrintCheck()
public
canPrintCheck() : bool
Return values
boolcanPrintCheckSelf()
public
canPrintCheckSelf(Payment $payment) : bool
Parameters
- $payment : Payment
Return values
boolcheck()
public
check(Payment $payment) : ServiceResult
Parameters
- $payment : Payment
Return values
ServiceResultconfirm()
public
confirm(Payment $payment[, int $sum = 0 ]) : ServiceResult
Parameters
- $payment : Payment
- $sum : int = 0
Tags
Return values
ServiceResultcreateClone()
public
createClone(SplObjectStorage $cloneEntity) : Service
Parameters
- $cloneEntity : SplObjectStorage
Return values
ServicecreditNoDemand()
public
creditNoDemand(Payment $payment) : ServiceResult
Parameters
- $payment : Payment
Return values
ServiceResultdebitNoDemand()
public
debitNoDemand(Payment $payment) : ServiceResult
Parameters
- $payment : Payment
Return values
ServiceResultgetCashboxClass()
Returns class name of cashbox for pay system
public
getCashboxClass() : string
Tags
Return values
stringgetClientType()
The type of client that the payment system can work with
public
getClientType() : string
Return values
stringgetClientTypeFromHandler()
The type of client that the handler can work with
public
getClientTypeFromHandler() : string
Return values
stringgetConsumerName()
public
getConsumerName() : string
Return values
stringgetContext()
public
getContext() : Context
Return values
ContextgetCurrency()
public
getCurrency() : array<string|int, mixed>
Return values
array<string|int, mixed>getDemoParams()
public
getDemoParams() : array<string|int, mixed>
Return values
array<string|int, mixed>getField()
public
getField(mixed $name) : mixed
Parameters
- $name : mixed
getFieldsValues()
public
getFieldsValues() : array<string|int, mixed>
Return values
array<string|int, mixed>getHandlerDescription()
public
getHandlerDescription() : array<string|int, mixed>
Return values
array<string|int, mixed>getParamsBusValue()
public
getParamsBusValue(Payment $payment) : array<string|int, mixed>
Parameters
- $payment : Payment
Return values
array<string|int, mixed>getPaymentPrice()
public
getPaymentPrice(Payment $payment) : mixed
Parameters
- $payment : Payment
getPdf()
public
getPdf(Payment $payment) : mixed
Parameters
- $payment : Payment
Tags
getPdfContent()
public
getPdfContent(Payment $payment) : mixed
Parameters
- $payment : Payment
Tags
getPrePaymentProps()
public
getPrePaymentProps() : mixed
Tags
getServiceId()
public
getServiceId() : int
Return values
intgetStartupRestrictions()
public
getStartupRestrictions() : RestrictionInfoCollection
Return values
RestrictionInfoCollectioninitiatePay()
public
initiatePay(Payment $payment[, Request|null $request = null ][, int $mode = BaseServiceHandler::STREAM ]) : ServiceResult
Parameters
- $payment : Payment
- $request : Request|null = null
- $mode : int = BaseServiceHandler::STREAM
Return values
ServiceResultinitPrePayment()
public
initPrePayment([Payment|null $payment = null ], Request $request) : mixed
Parameters
- $payment : Payment|null = null
- $request : Request
Tags
isAffordDocumentGeneratePdf()
public
isAffordDocumentGeneratePdf() : bool
Return values
boolisAffordPdf()
public
isAffordPdf() : bool
Return values
boolisAllowEditPayment()
public
isAllowEditPayment() : bool
Return values
boolisBlockable()
public
isBlockable() : bool
Return values
boolisCash()
public
isCash() : bool
Return values
boolisCheckable()
public
isCheckable() : bool
Return values
boolisClone()
public
isClone() : bool
Return values
boolisCustom()
public
isCustom() : bool
Return values
boolisFiscalizationAware()
Returns true if handler extends IFiscalizationAware interface
public
isFiscalizationAware() : bool
Return values
boolisFiscalizationEnabled()
Returns indicator showing if fiscalization is enabled on the payment system side
public
isFiscalizationEnabled(Payment $payment) : bool
Parameters
- $payment : Payment
Tags
Return values
boolisPayable()
public
isPayable() : bool
Return values
boolisPdfGenerated()
public
isPdfGenerated(Payment $payment) : mixed
Parameters
- $payment : Payment
Tags
isPrePayable()
public
isPrePayable() : bool
Return values
boolisRecurring()
public
isRecurring(Payment $payment) : bool
Parameters
- $payment : Payment
Return values
boolisRefundable()
public
isRefundable() : bool
Return values
boolisSupportPrintCheck()
Returns true if handler extends ISupportPrintCheck interface
public
isSupportPrintCheck() : bool
Return values
boolisTuned()
public
isTuned() : bool
Return values
boolpayOrderByPrePayment()
public
payOrderByPrePayment(mixed $orderData) : mixed
Parameters
- $orderData : mixed
Tags
processRequest()
public
processRequest(Request $request) : Result
Parameters
- $request : Request
Tags
Return values
Resultrefund()
public
refund(Payment $payment[, int $refundableSum = 0 ]) : ServiceResult|Result
Parameters
- $payment : Payment
- $refundableSum : int = 0
Tags
Return values
ServiceResult|ResultregisterCallbackOnGenerate()
public
registerCallbackOnGenerate(Payment $payment, mixed $params) : mixed
Parameters
- $payment : Payment
- $params : mixed
Tags
repeatRecurrent()
public
repeatRecurrent(Payment $payment[, Request|null $request = null ]) : ServiceResult
Parameters
- $payment : Payment
- $request : Request|null = null
Return values
ServiceResultsetOrderDataForPrePayment()
public
setOrderDataForPrePayment([array<string|int, mixed> $orderData = array() ]) : mixed
Parameters
- $orderData : array<string|int, mixed> = array()
Tags
setTemplateMode()
public
setTemplateMode(mixed $mode) : mixed
Parameters
- $mode : mixed
setTemplateParams()
public
setTemplateParams(array<string|int, mixed> $params) : mixed
Parameters
- $params : array<string|int, mixed>
showTemplate()
public
showTemplate([Payment|null $payment = null ], mixed $templateName) : ServiceResult
Parameters
- $payment : Payment|null = null
- $templateName : mixed