422 Unprocessable Entity - Error for test payments with Mollie

Hi all!
I’ve been bumping my head against the wall :exploding_head:

Getting an error on Snipcart:
Failed to load resource: the server responded with a status of 422 (Unprocessable Entity)
Uncaught TypeError: t.indexOf is not a function
at ue (snipcart.js:1:351976)
at ce (snipcart.js:1:351903)
at Array.map ()
at snipcart.js:1:351862
at snipcart.js:1:351870
at Array.forEach ()
at se (snipcart.js:1:351756)
at snipcart.js:1:354367
at c (snipcart.js:12:2702)
at Object.next (snipcart.js:12:1997)

What I’ve done:

  • Include the script with Public API successfully
  • I can add and remove products to the cart successfully
  • I can show the checkout page and fill in my address
  • As soon as I want to do a test payment, I get an error.

My client has configured Mollie as a payment provider, and the Mollie profile is approved by Mollie.

See attached screenshot below.

I have searched the forum, but could not find an answer specific for Mollie.

Any help would be great!

Update:
I have just made a new Snipcart account with no Payment Provider configured, and the test mode is actually working!

So this appears to be a problem with using the test api key while having a Payment Provider connected (Mollie in this case).

But I think it is fair to be able to test the site when the payment provider is already connected.

I also wonder now if a live API key with Mollie integration will work for my client. Any input still very welcome, since I find this quite confusing…