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?
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | commerce_mollie-error_on_configuration.patch | 1.12 KB | lammensj |
Comments
Comment #2
brahimmouhamou commentedComment #3
lammensj commentedThe 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.
Comment #4
lammensj commentedComment #5
ndf commentedPrefer 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 :)
Comment #6
ndf commentedWriting the test is too much work now :/
Will push and release #3 in a moment
Comment #8
ndf commentedTagged a new release 8.x-1.2 https://www.drupal.org/project/commerce_mollie/releases/8.x-1.2
Comment #9
lammensj commentedThank you for the new release. This will help people a lot :-)
Comment #10
brahimmouhamou commentedYes, thanks @LammensJ for the patch and @ndf for the fast followup!
Comment #11
ndf commented