Strasbourg
Account created on 26 October 2018, over 6 years ago
#

Merge Requests

More

Recent comments

🇫🇷France nicolasgraph Strasbourg

Error described in #17 may be caused by a server error we fixed ; last orders were placed with no error.
I keep an eye on this to fix or merge asap.

🇫🇷France nicolasgraph Strasbourg

We get the following error on return:

Drupal\commerce_payment\Exception\PaymentGatewayException: Request body is not valid JSON. in Drupal\commerce_payplug\Plugin\Commerce\PaymentGateway\OffsitePayPlug->onReturn() (line 173 of /home/ernestpr/web/www/web/modules/contrib/commerce_payplug/src/Plugin/Commerce/PaymentGateway/OffsitePayPlug.php).

Indeed, the payload was empty for this payment return.
I guess we need to retrieve the remote payment to truly validate its status on return, as done in the Magento module.
This mean we need to create the payment entity early, from the remote payment creation response, to store the remote ID to request later on.

🇫🇷France nicolasgraph Strasbourg

Let's merge this to go forward.
Opening a dedicated issue for the last tricky phpstan error.

🇫🇷France nicolasgraph Strasbourg

The current MR still requires attention for this last phpstan error:

 ------ -------------------------------------------------------------------------- 
  Line   tests/modules/commerce_payplug_tests/src/Services/PayPlugTestService.php  
 ------ -------------------------------------------------------------------------- 
  94     \Drupal calls should be avoided in classes, use dependency                
         injection instead                                                         
 ------ -------------------------------------------------------------------------- 
🇫🇷France nicolasgraph Strasbourg

I just rerolled the MR into a new branch.
It still requires attention for this last phpstan error:

 ------ -------------------------------------------------------------------------- 
  Line   tests/modules/commerce_payplug_tests/src/Services/PayPlugTestService.php  
 ------ -------------------------------------------------------------------------- 
  94     \Drupal calls should be avoided in classes, use dependency                
         injection instead                                                         
 ------ -------------------------------------------------------------------------- 
🇫🇷France nicolasgraph Strasbourg

nicolasgraph changed the visibility of the branch 3519229-fix-coding-standards to hidden.

🇫🇷France nicolasgraph Strasbourg

nicolasgraph changed the visibility of the branch 3345993-add-refund-tests to hidden.

🇫🇷France nicolasgraph Strasbourg

Adding refund tests.

🇫🇷France nicolasgraph Strasbourg

nicolasgraph changed the visibility of the branch 1.x to hidden.

🇫🇷France nicolasgraph Strasbourg

Ok, I guess it is related to the way PaymentGatewayBase is now instanciated in Commerce 3, using create() with no constructor.
Not sure we should support Commerce 2 AND 3.

🇫🇷France nicolasgraph Strasbourg

This does not ensure a full Commerce 3 compatibility.
See Tests failing with Drupal 11 /Commerce 3 🐛 Tests failing with Drupal 11 /Commerce 3 Active .

🇫🇷France nicolasgraph Strasbourg

Weird, upgrade_status does not complain; the module should be D11 ready.
Let's merge this tiny enhancement anyway.

🇫🇷France nicolasgraph Strasbourg

This should be enough.

🇫🇷France nicolasgraph Strasbourg

Tests in progress in #3345993 📌 Add tests Active do not complain anymore, let's merge this.

🇫🇷France nicolasgraph Strasbourg

My mistake : this issue is not part of the branch 1.x. It was introduced and will be resolved in #3345993 📌 Add tests Active .

🇫🇷France nicolasgraph Strasbourg

CronTest.php tests that payments to update are enqueued ; the queue processing still needs to be tested.

🇫🇷France nicolasgraph Strasbourg

This is now tested in #3345993 📌 Add tests Active .

🇫🇷France nicolasgraph Strasbourg

Tests in #3345993 📌 Add tests Active validates this.

🇫🇷France nicolasgraph Strasbourg

This is tested in #3345993 📌 Add tests Active .

🇫🇷France nicolasgraph Strasbourg

Needs #3524943 🐛 Missing schema key Active to land.

Production build 0.71.5 2024