Skip to main content

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

Ts
Signature

constructor

method(config: PaymentMethodConfigOptions<T>) => PaymentMethodHandler
Was this chapter helpful?
Report Issue
Edited Feb 25, 2026ยทEdit this page