PaymentMethodHandler
A PaymentMethodHandler contains the code which is used to generate a Payment when a call to the
addPaymentToOrder mutation is made. It contains any necessary steps of interfacing with a
third-party payment gateway before the Payment is created and can also define actions to fire
when the state of the payment is changed.
PaymentMethodHandlers are instantiated using a PaymentMethodConfigOptions object, which configures the business logic used to create, settle and refund payments.
Example
- Extends:
ConfigurableOperationDef<T>
constructor
method
(config: PaymentMethodConfigOptions<T>) => PaymentMethodHandlerWas this chapter helpful?