For the testing shop, you should set the "test" to true. You can check the shop info and set it to true to bypass the error.
The note on the API page.
For testing purposes you can include "test": true when creating the charge. This prevents the credit card from being charged. Test shops and demo shops cannot be charged.