PaymentService
This will be
Deprecated
in the near future use the new PaymentProcessor interface instead
Properties
__configModule__Record<string, unknown>__container__anyRequired__moduleDeclaration__Record<string, unknown>manager_EntityManagerRequiredtransactionManager_undefined | EntityManagerRequiredAccessors
activeManager_
Returns
EntityManagerEntityManagerRequiredMethods
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>RequiredisolationOrErrorHandlerIsolationLevel | (error: TError) => Promise<void | TResult>maybeErrorHandlerOrDontFail(error: TError) => Promise<void | TResult>Returns
PromisePromise<TResult>RequiredauthorizePayment
This will be
Parameters
Returns
Deprecated
in the near future use PaymentProcessor.authorizePayment instead
cancelPayment
This will be
Parameters
Returns
Deprecated
in the near future use PaymentProcessor.cancelPayment instead
capturePayment
This will be
Parameters
Returns
Deprecated
in the near future use PaymentProcessor.capturePayment instead
createPayment
**createPayment**(context): Promise<[PaymentSessionResponse](/references/js-client/internal/types/internal.internal.PaymentSessionResponse)>
This will be
Parameters
Returns
Deprecated
in the near future use PaymentProcessor.initiatePayment instead
**createPayment**(cart): Promise<[Data](/references/js-client/internal/types/internal.internal.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
PromisePromise<void>RequiredDeprecated
in the near future use PaymentProcessor.cancelPayment instead
getIdentifier
Returns
stringstringgetPaymentData
This will be
Parameters
Returns
Deprecated
in the near future use PaymentProcessor.retrievePayment instead
getStatus
This will be
Parameters
Returns
Deprecated
in the near future use PaymentProcessor.getPaymentStatus instead
refundPayment
This will be
Parameters
refundAmountnumberRequiredReturns
Deprecated
in the near future use PaymentProcessor.refundPayment instead
retrievePayment
This will be
Parameters
Returns
Deprecated
in the near future use PaymentProcessor.retrievePayment instead
retrieveSavedMethods
This will be
Parameters
Returns
Deprecated
in the near future use PaymentProcessor.getSavedMethods instead
shouldRetryTransaction_
Parameters
errRecord<string, unknown> | { code: string  }RequiredReturns
booleanbooleanupdatePayment
**updatePayment**(paymentSessionData, context): Promise<[Data](/references/js-client/internal/types/internal.internal.Data) \| [PaymentSessionResponse](/references/js-client/internal/types/internal.internal.PaymentSessionResponse)>
Parameters
Returns
**updatePayment**(paymentSessionData, cart): Promise<[Data](/references/js-client/internal/types/internal.internal.Data)>
This will be
Parameters
Returns
Deprecated
in the near future use PaymentProcessor.updatePayment instead
updatePaymentData
This will be
Parameters
Returns
Deprecated
in the near future use PaymentProcessor.updatePayment instead
withTransaction
Parameters
transactionManagerEntityManager