- Issue created by @nicolasgraph
- Merge request !3Draft: Throw a DeclineException on payment failure → (Closed) created by nicolasgraph
- 🇫🇷France nicolasgraph Strasbourg
This would need tests.
Waiting #3515036 📌 Fix tests Active to be fixed. - 🇫🇷France nicolasgraph Strasbourg
Manual tests failed. The order is still placed.
- 🇫🇷France nicolasgraph Strasbourg
nicolasgraph → changed the visibility of the branch 4.x to hidden.
- 🇫🇷France nicolasgraph Strasbourg
Ok, I get it, in my failing manual test case,
onNotify()
is not called, the payment is managed throughonReturn()
which do... nothing.
While the payment entity creation can be managedonNotify()
only, the remote payment validation must be processedonReturn()
too to throw theDeclineException
in case of failure. - Merge request !5Resolve #3515023 "Fix order placed on payment failure" → (Open) created by nicolasgraph
- 🇫🇷France nicolasgraph Strasbourg
I confirm the current MR state do fix my issue in live mode.
Still needs attention and ideally, some tests. - 🇫🇷France Dom.
I have added a 5.x branch with Commerce 3.x support on Drupal 11 and also updating the underneath Payplug library to the latest (3.6.0). There may be something fixed on there side for this.
I created a brand new Commerce Kickstart env with Commerce Payplug on Commerce 3.x and tried the basics: anonymous cart payment both with a valid Visa card and a failing DS MasterCard and both scenarios worked as expected (I was blocked at offsite payment gate using the mastercard)
Test cards available here: https://docs.payplug.com/api/apiref.html#api-testing
Could you have a new try with those updates and let me know how to reproduce otherwise ?
- 🇫🇷France nicolasgraph Strasbourg
Thanks for your reply @dom.
Unfortunatly I was not able to reproduce the bug in test mode.
In test mode, I'm not redirected to the site on payment failure, while in live mode I am.
The 5.x branch do not fix the issue bescauseonReturn()
is still empty and that's the method called when Payplug redirect to the site in my case.
Also I didn't try the v3 but I suspect #3295358 💬 Payments which are not completed, still complete the order. Closed: cannot reproduce to be a duplicate. - 🇫🇷France nicolasgraph Strasbourg
Merging 5.x introduced errors ; waiting #3428466 📌 Automated Drupal 11 compatibility fixes for commerce_payplug Needs review to land before to continue.