AbstractPaymentService
This will be
Deprecated
in the near future use the AbstractPaymentProcessor instead
Implements
Properties
__configModule__
Record<string, unknown>__container__
anyRequired__moduleDeclaration__
Record<string, unknown>manager_
EntityManagerRequiredtransactionManager_
undefined | EntityManagerRequiredidentifier
stringRequiredAccessors
activeManager_
Returns
EntityManager
EntityManagerRequiredMethods
atomicPhase_
Wraps some work within a transactional block. If the service already has a transaction manager attached this will be reused, otherwise a new transaction manager is created.
Parameters
work
(transactionManager: EntityManager) => Promise<TResult>RequiredisolationOrErrorHandler
IsolationLevel | (error: TError) => Promise<void | TResult>maybeErrorHandlerOrDontFail
(error: TError) => Promise<void | TResult>Returns
Promise
Promise<TResult>RequiredauthorizePayment
Parameters
Returns
Deprecated
cancelPayment
This will be
Parameters
Returns
Deprecated
in the near future
capturePayment
This will be
Parameters
Returns
Deprecated
in the near future
createPayment
Abstract
createPayment(context
): Promise
<PaymentSessionResponse
>
Parameters
Returns
Abstract
createPayment(cart
): Promise
<Data
>
This will be
Parameters
Returns
Deprecated
in the near future use createPayment(context: Cart & PaymentContext): Promise<PaymentSessionResponse>
instead
deletePayment
This will be
Parameters
Returns
Promise
Promise<void>RequiredDeprecated
in the near future
getIdentifier
Returns
string
stringgetPaymentData
Parameters
Returns
Deprecated
getStatus
This will be
Parameters
Returns
Deprecated
in the near future
refundPayment
This will be
Parameters
refundAmount
numberRequiredReturns
Deprecated
in the near future
retrievePayment
Parameters
Returns
Deprecated
retrieveSavedMethods
This will be
Parameters
Returns
Deprecated
in the near future
shouldRetryTransaction_
Parameters
err
Record<string, unknown> | { code: string }RequiredReturns
boolean
booleanupdatePayment
Abstract
updatePayment(paymentSessionData
, context
): Promise
<Record<string
, unknown
> | PaymentSessionResponse
>
Parameters
Returns
Abstract
updatePayment(paymentSessionData
, cart
): Promise
<Data
>
This will be
Parameters
Returns
Deprecated
in the near future use updatePayment(paymentSessionData: PaymentSessionData, context: Cart & PaymentContext): Promise<PaymentSessionResponse>
instead
updatePaymentData
Parameters
Returns
Deprecated
withTransaction
Parameters
transactionManager
EntityManager