Problem/Motivation
The callback from QuickPay after a payment fails in checksum validation producing the following errors on the dblog:
Path: /da/commerce-quickpay/callback. Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: in Drupal\Core\Routing\AccessAwareRouter->checkAccess() (line 120 of <mysite>/core/lib/Drupal/Core/Routing/AccessAwareRouter.php).
and
Computed checksum does not match header checksum.
Steps to reproduce
- Install and configure this module
- Make a payment
- Inspect the dblog and the QuickPay administration to see the failed callback
Proposed resolution
The docs from QuickPay suggest using the following method for getting the request content:
$request_body = file_get_contents("php://input");
By using this in stead of re-encoding the $content I managed to get the checksum validation to pass.
Remaining tasks
- Identify the exact cause of the error
- Make a proper patch
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | checksum-error-3178282-0.patch | 767 bytes | benjamin_dk |
Comments
Comment #2
benjamin_dk commentedComment #3
benjamin_dk commentedAdding a hopefully properly formatted patch.
Comment #4
kaa4ever commentedComment #5
kaa4ever commented