Comments (18)
Hey all
Thank you for bringing this to our attention. On the face of it, it appears to be an issue with the URLs being used for webhooks/complete payments.
We will investigate this and look to get a solution out as soon as we can.
Thanks
from commerce-mollie.
This is an issue I've brought up several times already. No real solution from Pixel&Tonic yet.
Maybe the P&T guys could check the Mollie Payments plugin? It had the same issue on first release, however, it was solved by the developer.
from commerce-mollie.
Hey everyone, I'm the developer Bart mentioned in the comment above.
In my plugin the issue was a simple typo on my part so that won't be the problem here.
However, could you have a look at your logs at times when the webhook is happening? Knowing the error Craft is throwing makes this much much easier to debug for the Craft team, as they probably don't have testing setups readily available for each of the payment providers they support.
from commerce-mollie.
This is in the logs at the time of the first webhook error:
2019-12-05 20:53:22 [-][-][j8dqdqbujifk66g9jlkerfm7jb][error][yii\web\HttpException:400] yii\web\BadRequestHttpException: Unable to verify your data submission. in /home/user-xxxxxxxxxxxx/webapps/app-xxxxxxxxxxxx-live/vendor/yiisoft/yii2/web/Controller.php:166
Stack trace:
#0 /home/user-xxxxxxxxxxxx/webapps/app-xxxxxxxxxxxx-live/vendor/craftcms/cms/src/web/Controller.php(143): yii\web\Controller->beforeAction(Object(yii\base\InlineAction))
#1 /home/user-xxxxxxxxxxxx/webapps/app-xxxxxxxxxxxx-live/vendor/craftcms/cms/src/controllers/TemplatesController.php(72): craft\web\Controller->beforeAction(Object(yii\base\InlineAction))
#2 /home/user-xxxxxxxxxxxx/webapps/app-xxxxxxxxxxxx-live/vendor/yiisoft/yii2/base/Controller.php(155): craft\controllers\TemplatesController->beforeAction(Object(yii\base\InlineAction))
#3 /home/user-xxxxxxxxxxxx/webapps/app-xxxxxxxxxxxx-live/vendor/craftcms/cms/src/web/Controller.php(187): yii\base\Controller->runAction('render', Array)
#4 /home/user-xxxxxxxxxxxx/webapps/app-xxxxxxxxxxxx-live/vendor/yiisoft/yii2/base/Module.php(528): craft\web\Controller->runAction('render', Array)
#5 /home/user-xxxxxxxxxxxx/webapps/app-xxxxxxxxxxxx-live/vendor/craftcms/cms/src/web/Application.php(299): yii\base\Module->runAction('templates/rende...', Array)
#6 /home/user-xxxxxxxxxxxx/webapps/app-xxxxxxxxxxxx-live/vendor/yiisoft/yii2/web/Application.php(103): craft\web\Application->runAction('templates/rende...', Array)
#7 /home/user-xxxxxxxxxxxx/webapps/app-xxxxxxxxxxxx-live/vendor/craftcms/cms/src/web/Application.php(284): yii\web\Application->handleRequest(Object(craft\web\Request))
#8 /home/user-xxxxxxxxxxxx/webapps/app-xxxxxxxxxxxx-live/vendor/yiisoft/yii2/base/Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request))
#9 /home/user-xxxxxxxxxxxx/webapps/app-xxxxxxxxxxxx-live/web/index.php(21): yii\base\Application->run()
#10 {main}
2019-12-05 20:53:22 [-][-][j8dqdqbujifk66g9jlkerfm7jb][info][application] $_GET = [
'step' => 'done'
'number' => '72d6ba19495e45880e895e16f636f256'
]
$_POST = []
$_FILES = []
$_COOKIE = []
$_SESSION = [
'bd62416aa8538ede709019a5e113eea5__flash' => []
'commerce_cart' => '3f2c72f5c0e79ef680905601f795777c'
'commerce_customer' => 1225209
]
$_SERVER = [
'USER' => 'user-xxxxxxxxxxxx'
'HOME' => '/home/user-xxxxxxxxxxxx'
'HTTP_USER_AGENT' => 'Mollie.nl HTTP client/1.0'
'HTTP_ACCEPT_ENCODING' => 'deflate, gzip'
'HTTP_ACCEPT' => '*/*'
'HTTP_HOST' => 'www.xxxxxxxxxxxx.nl'
'REDIRECT_STATUS' => '200'
'SERVER_NAME' => 'xxxxxxxxxxxx.nl'
'SERVER_PORT' => '443'
'SERVER_ADDR' => '136.244.107.129'
'REMOTE_PORT' => '58304'
'REMOTE_ADDR' => '87.233.229.27'
'SERVER_SOFTWARE' => 'nginx/1.17.6'
'GATEWAY_INTERFACE' => 'CGI/1.1'
'HTTPS' => 'on'
'REQUEST_SCHEME' => 'https'
'SERVER_PROTOCOL' => 'HTTP/1.1'
'DOCUMENT_URI' => '/index.php'
'REQUEST_URI' => '/wedstrijdsport/xxxxxxx?step=done&number=72d6ba19495e45880e895e16f636f256'
'SCRIPT_NAME' => '/index.php'
'CONTENT_LENGTH' => ''
'CONTENT_TYPE' => ''
'REQUEST_METHOD' => 'POST'
'QUERY_STRING' => 'step=done&number=72d6ba19495e45880e895e16f636f256'
'DOCUMENT_ROOT' => '/home/user-xxxxxxxxxxxx/webapps/app-xxxxxxxxxxxx-live/web'
'SCRIPT_FILENAME' => '/home/user-xxxxxxxxxxxx/webapps/app-xxxxxxxxxxxx-live/web/index.php'
'FCGI_ROLE' => 'RESPONDER'
'PHP_SELF' => '/index.php'
'REQUEST_TIME_FLOAT' => 1575575602.9138
'REQUEST_TIME' => 1575575602
'ENVIRONMENT' => 'production'
'SECURITY_KEY' => '••••••••••••••••••••••••••••••••'
'DB_DRIVER' => 'mysql'
'DB_SERVER' => 'localhost'
'DB_USER' => 'xxxxxxxxxxxx_db_user'
'DB_PASSWORD' => '••••••••••••••••••••••••••••••••'
'DB_DATABASE' => 'xxxxxxxxxxxx_live'
'DB_SCHEMA' => 'public'
'DB_TABLE_PREFIX' => ''
'DB_PORT' => ''
]
2019-12-05 20:57:03 [-][-][9ckh92ga7v3it8bmrjp9auf0kd][error][yii\web\HttpException:503] craft\web\ServiceUnavailableHttpException in /home/user-xxxxxxxxxxxx/webapps/app-xxxxxxxxxxxx-live/vendor/craftcms/cms/src/web/Controller.php:163
from commerce-mollie.
Mollie's webhook is posting to /index.php?p=actions/commerce/payments/complete-payment&commerceTransactionHash=xxxxxxxxxxxxxxxxxxxxxxxxxxxx
.
Just had a look on one of our Commerce sites and I'm seeing the same thing, even thought the controller has CSRF disabled to that function (see here https://github.com/craftcms/commerce/blob/develop/src/controllers/PaymentsController.php#L41).
I'll try to investigate a bit further.
from commerce-mollie.
@bartrylant What version of craftcms/commerce do you have installed on the site that is having this issue?
from commerce-mollie.
Craft 3.3.17
Craft Commerce 2.2.8
from commerce-mollie.
@nfourtythree I have a couple of installs hooked up to Mollie's test payment system if you need someone to help test things, feel free to ping me!
from commerce-mollie.
Thanks @janhenckens will let you know if I need to take you up on that!
from commerce-mollie.
Any progress on this one?
from commerce-mollie.
Hi all
I have pushed an update for this and it would be great if we could get some feedback on if this resolves the issues.
You can include the update in your project by updating your composer.json
with the following and running composer update
.
"require": {
"craftcms/commerce-mollie": "dev-master#659339fa1eaa671584ff23f6373b065bbc4afb3d as 2.1.0.1",
"...": "..."
}
If everything looks ok I can get a release out and you will be able to update as normal.
Thanks for the input!
from commerce-mollie.
@tomdeleu @janhenckens @bartrylant Can anyone confirm the above fixes the issue before we cut a release?
from commerce-mollie.
@lukeholder @nfourtythree I'm sorry. Didn't have the time yet. Hectic week due to illness of a colleague.
I'll look into it and try out on a site this weekend!
from commerce-mollie.
When I try to install through composer I get
The requested package craftcms/commerce-mollie dev-mastes#659339fa1eaa671584ff23f6373b065bbc4afb3d as 2.1.0.1 exists as craftcms/commerce-mollie[1.0.0, 1.0.0.1, 1.1.0, 1.1.1, 2.0.0, 2.0.1, 2.1.0, 2.1.0.1, dev-master] but these are rejected by your constraint.
from commerce-mollie.
Hi @bartrylant
My apologies there was a typo in my comment, have updated it now. It should have been:
"require": {
"craftcms/commerce-mollie": "dev-master#659339fa1eaa671584ff23f6373b065bbc4afb3d as 2.1.0.1",
"...": "..."
}```
Thanks!
from commerce-mollie.
@lukeholder @nfourtythree I tested it and can confirm it now works as it should work.
from commerce-mollie.
Just tested it, and I can also confirm the issue is fixed with this version.
Is this version safe to use in production while waiting for release?
from commerce-mollie.
Hi All,
Have just cut a 2.1.1
release for the plugin.
You should be able to go ahead and update as normal.
Thanks!
from commerce-mollie.
Related Issues (20)
- Use Mollie Orders API to support Klarna Pay Later and Klarna Slice It HOT 17
- Mollie down HOT 2
- Order marked paid twice HOT 14
- Order confirmation not being sent when using Mollie HOT 3
- Mollie test payment page returns to the site only for "paid" payment status HOT 3
- Successful transactions are not being processed properly HOT 3
- Mollie Orders api
- Installation failed
- Ability to set description HOT 5
- Overpaid orders due to duplicate transactions HOT 8
- Missing issuer with KBC payment method HOT 1
- Http\Adapter\Guzzle6\Client' not found HOT 2
- Expired payment flash message HOT 1
- Error: 422 - 'familyName' field is missing HOT 1
- TypeError when trying to submit payment form HOT 2
- Sending paymentMethod and issuer doesn't seem to work (anymore) HOT 1
- Incorrect redirect via fetchPaymentMethods HOT 2
- Payment method screen not shown, but going directly to one specific option HOT 1
- test HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commerce-mollie.