DummyPaymentHandler
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
addPaymentToOrder(input: {
method: 'dummy-payment-method',
metadata: {
shouldDecline: false,
shouldError: false,
shouldErrorOnSettle: true,
}
}) {
# ...
}