I just did a clean install with commerce v2.1 and commerce_mollie v1.0 but everytime I want to create a new mollie gateway I get a fatal error in my console when selecting mollie:

Uncaught PHP Exception Drupal\commerce_payment\Exception\AuthenticationException: "Invalid API key: 'test_'. An API key must start with 'test_' or 'live_'." at /web/modules/contrib/commerce_mollie/src/ErrorHelper.php line 25

Can anyone confirm this?

Comments

brahimmouhamou created an issue. See original summary.

brahimmouhamou’s picture

Issue summary: View changes
lammensj’s picture

The included patch checks if the given api key isn't the same as the default configuration (being just 'test_').

Be aware that this patch is made for the alpha2 release, due to https://www.drupal.org/node/2919395.

lammensj’s picture

Status: Active » Needs review
ndf’s picture

Assigned: Unassigned » ndf
Status: Needs review » Needs work

Prefer to have a test for gateway setup.

Travis is working on github. When you fork the github project and create a pull-request, travis will automatically test on every commit.

Gonna try to do this tonight :)

ndf’s picture

Status: Needs work » Reviewed & tested by the community

Writing the test is too much work now :/

Will push and release #3 in a moment

  • ndf committed 851b826 on 8.x-1.x
    #2922876 by LammensJ: Fatal error on configuration
    
ndf’s picture

lammensj’s picture

Thank you for the new release. This will help people a lot :-)

brahimmouhamou’s picture

Yes, thanks @LammensJ for the patch and @ndf for the fast followup!

ndf’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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