- Issue created by @redsky
- π¨π¦Canada redsky
Interestingly we just did a live test on a different Moneris account and a real credit card with a declined transaction and it did not show this double submit behavior. I didn't see the test first hand though, I can try to set the test up again if that helps.
- πΊπ¦Ukraine marchuk.vitaliy Rivne, UA
vmarchuk β made their first commit to this issueβs fork.
- @vmarchuk opened merge request.
- Status changed to Needs review
over 1 year ago 7:02am 11 August 2023 - πΊπ¦Ukraine marchuk.vitaliy Rivne, UA
@redsky @rszrama
I created an MR with fixes. The main idea is that we need to generate a new ticket on the Moneris side in case of an error, so for that we need to do $order->unset Data('moneris checkout');. And then a new ticket will be generated in getTicket() method.
Can you test it and let me know the results? - π¨π¦Canada redsky
Sounds good @vmarchuk, I'm testing this now.
Thanks!
- π¨π¦Canada redsky
Thanks for this MR!
I tested this out and it did stop the need to press submit twice after having a declined transaction but only for the "Moneris Checkout order number strategy" named "Use the order ID with timestamp appended". (See https://www.drupal.org/project/commerce_moneris_checkout/issues/3367095 π Should the order_no field be the Commerce Order No? Fixed )
For the "Moneris Checkout order number strategy" named "Generate the order number early and use it instead of the ID" it fails. Without this MR, each submissions generates a new order_no which is consistent with the help text message "Note: generating order numbers will likely result in out of order or missing order numbers based on if / when the orders are placed." Those wasted numbers were missing from Drupal but they did show up as declined transactions in Moneris.
We'd love it if the double pressing submit bug could be solved and still generate new order_no's with each Moneris call.
Thanks,
Chris - πΊπ¦Ukraine marchuk.vitaliy Rivne, UA
@redsky @rszrama
I added a fix to MR and changed the strategy a bit.
Can you test it and let me know the results? - π¨π¦Canada redsky
This is working in my initial tests - just waiting to here back from our client.
-
redsky β
committed f0eeefc4 on 1.x authored by
vmarchuk β
Issue #3379998 by vmarchuk, redsky: After payment declined, have to...
-
redsky β
committed f0eeefc4 on 1.x authored by
vmarchuk β
- π¨π¦Canada redsky
I can confirm this MR worked. I accepted the Merge Request.
- Status changed to Fixed
over 1 year ago 3:09pm 14 August 2023 - Status changed to Fixed
over 1 year ago 3:23pm 14 August 2023