To test various scenarios, KOMOJU supports a handful of test card numbers and other payment method-specific inputs that simulate different outcomes.
Note that these only work in test mode. You're in test mode when you use the secret key of your test merchant. See Authentication.
|Exceeds card limit
|Bad verification value
|Cannot use card
|WebMoney prepaid card with a 2000 yen balance
|Invalid card number
|Prepaid card has already been used
|Card has been declined due to an unknown error
Not all payment methods accept number inputs. Additionally, testing 3DS currently does not work with the above card numbers. In these cases, you can use the following HTTP header to simulate error responses in test mode:
This header can be passed when creating payments, sessions, or customers.
- When passed during payment creation, the payment will immediately fail with the given error.
- When passed during session creation, all future attempts to pay will fail with the given error.
- When passed during customer creation, all attempts to use that customer to pay will fail with the given error.
Updated 3 months ago