Unusable with Drupal 10

Created on 1 February 2024, 11 months ago
Updated 18 February 2024, 10 months ago

Problem/Motivation

When trying to connect to the payment processor, after clicking "Proceed to secure payment", we receive the error:

Incorrect hash. Please check your code and the Developers Documentation.

I believe I have followed the README.md installation instructions.

We configured the module with the testing MERCHANT_ID, ACCOUNT and SHARED SECRET as provided by GP.
We are running in test mode with this endpoint: https://pay.sandbox.realexpayments.com/pay

I tried installing with:

composer require drupal/commerce_realex

and then with:

composer require drupal/commerce_realex --with-all-dependencies

Both times, 3.0 was installed with the same results.

We are running Drupal 10.1 on PHP 8.1

We did get one error in the Apache logs but it didn't show up other times I tested so I feel it might be a red herring:

PHP Fatal error: Allowed memory size of 8589934592 bytes exhausted (tried to allocate 6440357888 bytes) in /web/modules/contrib/commerce_realex/src/Controller/RealexHppRequest.php on line 78'

Nothing in the Drupal logs.

There are very few users between the 2.0 and 3.0 versions of this module so my question this:

Is anyone successfully running 2.0 or 3.0 with Drupal 10.1+ and PHP 8.1+?

🐛 Bug report
Status

Closed: works as designed

Version

3.0

Component

Code

Created by

🇨🇦Canada Ron Collins

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Ron Collins
  • 🇮🇳India dineshkumarbollu

    Hi @Ron Collins

    when I tried install in D10.1 and php 8.1, i am not getting memory error but giving one new error.

    Problem 1
        - Root composer.json requires drupal/commerce_realex ^3.0 -> satisfiable by drupal/commerce_realex[3.0.0].
        - drupal/commerce_realex 3.0.0 requires annertech/rxp-js 1.3.1.21 -> could not be found in any version, there may be a typo in the package name.
    
    Potential causes:
     - A typo in the package name
     - The package is not available in a stable-enough version according to your minimum-stability setting
       see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
     - It's a private package and you forgot to add a custom repository to find it
  • 🇨🇦Canada Ron Collins

    Hi dineshkumarbollu,

    You need to follow these directions from the README.md:

    To make sure the correct dependencies are pulled in through composer, you have to first add the following to the repositories section of your root composer.json:

    {
        "type": "package",
        "package": {
            "name": "annertech/rxp-js",
            "version": "1.3.1.21",
            "type": "drupal-library",
            "dist": {
                "url": "https://github.com/Annertech/rxp-js/archive/1.3.1.21.zip",
                "type": "zip"
            },
            "require": {
                "composer/installers": "~1.0"
            }
        }
    }
  • 🇨🇦Canada Ron Collins

    Have the maintainers tried this module with Drupal 10?

  • Status changed to Closed: works as designed 10 months ago
  • 🇨🇦Canada Ron Collins

    User error! We had a space in one of the fields. Closing. We have another error now but I'll open a separate ticket for that.

  • 🇮🇪Ireland stella

    glad you got it sorted

Production build 0.71.5 2024