Hello,

I'm using:
- commerce 7.x-1.13
- payment 7.x-1.16
- payment_commerce 7.x-1.7
- mollie_payment 7.x-1.0-rc1

and I'm trying to get the Mollie payment method to work.

After trying with both test and live api keys I still get this error on my payment checkout step (example: www.site.be/nl/checkout/48/payment)

The error is:

Mollie_API_Exception: Error executing API call (request): No suitable payment methods found. in Mollie_API_Resource_Base->performApiCall() (regel 316 van .../public/sites/all/libraries/mollie_api/src/Mollie/API/Resource/Base.php).

In my Mollie backend there are several payment methods active and the website profile is in state "active, approved for live payments"

Does anyone have a clue what I'm doing wrong?

Solution

There are minimum and maximum amounts for each payment method in Mollie.
See documentation (in Dutch):
https://www.mollie.com/nl/support/post/wat-is-het-minimum-en-maximumbedr...

CommentFileSizeAuthor
#2 2783029-checkout-settings.png89.56 KBMegaChriz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

maxplus created an issue. See original summary.

MegaChriz’s picture

I also got this error. In my case it was because for some reason no Payment entity was created. I do have the payment method pane configured very early in the checkout process (instead of at the review page).
My checkout setup is as follows:

After I added the following piece of code to payment_commerce_redirect_form(), it worked again (though that doesn't seem logical to me):

// Make sure that any line item changes made to the order after choosing a
// payment method are also made to the payment.
payment_commerce_payment_fill($payment, commerce_order_load($payment->context_data['order_id']), $payment->method->pmid);
entity_save('payment', $payment);

This piece of code is also available as a patch in #2760305: Not working with FlatRate Drupal Commerce.

MegaChriz’s picture

Issue summary: View changes
Status: Active » Fixed

Finally found the real cause for this issue.

Mollie has put restrictions on the amount to accept per payment method. Per payment method in Mollie there is a minimum and maximum amount. Should the order amount not fall between these, then the Mollie payment method is not choosable. If the order amount is out of range for all Mollie payment methods, then the error "No suitable payment methods found" will appear.

Here is a list of minimum and maximum amounts (in Dutch):
https://www.mollie.com/nl/support/post/wat-is-het-minimum-en-maximumbedr...

Note that for Creditcard the default maximum amount is € 1000,00, but you can ask Mollie to raise the maximum for this Mollie payment method.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.