Describe your bug.
We're facing an issue with the order checkout (exceptional use case) which ends up in the error "There are no payment gateways available for this order. Please try again later. ".
Our site environment is:
Drupal Core: 11.3.10 (prod) / 11.4.12 (dev)
Commerce Core: 3.3.13 (prod) / 3.3.14 (dev)
Steps to reproduce it from a clean install.
- Create promotion coupon(s) which make the order checkout summary to $0.00.
- Add any order item in the cart, and apply the coupon(s) to make the order summary $0.00.
- Hit checkout.
- Update "Order information" form fields and move to "Review" page, ensuring that the order summary is still $0.00.
- $0.00 order summary won't allow any payment gateway attached to this checkout.
- On "Review" page instead to completing the checkout, hit "Go back". Which leads you back to the "Order information" page.
- Now, Remove the attached coupon(s). This action will update the order summary to make this order checkout eligible for payment.
- Click "Continue to to review" button.
- If you're logged in as an admin, you'll get "There are no payment gateways available for this order." otherwise "There are no payment gateways available for this order. Please try again later. " as an error message on UI.
Seems like when coupon is first applied on cart, it made the order summary to $0.00 which make sure that on checkout there will be no payment gateway attached to the cart order object. But when the checkout is proceeded backward from "Review" to "Order summary" and the removal of the applied coupons didn't assigned back a payment gateway, even though the order checkout is now eligible for a payment transaction with configured payment gateway(s).
Issue fork commerce-3638582
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments