Skip to main content

DummyPaymentHandler

A dummy PaymentMethodHandler which simply creates a Payment without any integration with an external payment provider. Intended only for use in development.

By specifying certain metadata keys, failures can be simulated:

Example

GraphQL
addPaymentToOrder(input: {  method: 'dummy-payment-method',  metadata: {    shouldDecline: false,    shouldError: false,    shouldErrorOnSettle: true,  }}) {  # ...}
Was this chapter helpful?
Report Issue
Edited Feb 2, 2026·Edit this page