Magento2: Payment Method Issue in Admin

Created on 11 Oct 2017  路  9Comments  路  Source: magento/magento2

Preconditions

  1. Magento EE 2.2.0

Steps to reproduce

  1. Only enable one payment method that has a form (PayPal, Purchase Order, etc.)
  2. Place an order in the admin

Expected result

  1. The form to enter information for the payment method should display

Actual result

  1. The form does not display

image

Note

  1. This works fine on the frontend
  2. It works fine if multiple payment methods are enabled
Fixed in 2.3.x Clear Description Confirmed Format is valid Ready for Work Reproduced on 2.2.x

Most helpful comment

Hi @baublet
This issue already fixed in private repository and will be merged very soon

All 9 comments

@cbend, thank you for your report.
We've created internal ticket(s) MAGETWO-81797 to track progress on the issue.

Internal ticket to track issue progress: MAGETWO-82653

@magento-team, Is there any fix/patch/workaround for this issue?
I'm having the same on Magento 2.2.2 with Authorize.net

Temporary fix:

// file: app/code/Namespace/Module/view/adminhtml/web/js/showSoloPaymentOption.js

// Temporary fix for https://github.com/magento/magento2/issues/11380

setInterval(function() {
    var list = document.querySelectorAll(
        "#order-billing_method_form .admin__field-option"
    )
    if (list.length !== 1) return
    // Find the payment method field and show it
    var panel = document.querySelector(
        "#order-billing_method_form .admin__page-section-item"
    )
    if (!panel || panel.style.display !== "none") return
    // If we get here, we have a single payment method, a valid corresponding
    // panel, and it's hidden, so let's show it.
    panel.style.display = "block"
    // Check this every 1.5 seconds
}, 1500)
<!-- file: app/code/Namespace/Module/view/adminhtml/layout/sales_order_create_index.xml -->
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <head>
        <script src="Namespace_Module::js/showSoloPaymentOption.js"/>
    </head>
</page>

Hi @baublet
This issue already fixed in private repository and will be merged very soon

Excellent, thanks!

The same problem on Magento v 2.2.3
Is it fixed on 2.2.4 ?

Hi @engcom-backlog-nazar. Thank you for working on this issue.
Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:

  • [ ] 1. Add/Edit Component: XXXXX label(s) to the ticket, indicating the components it may be related to.
  • [ ] 2. Verify that the issue is reproducible on 2.3-develop branch

    Details- Add the comment @magento-engcom-team give me 2.3-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and _stop verification process here_!

  • [ ] 3. Verify that the issue is reproducible on 2.2-develop branch.

    Details- Add the comment @magento-engcom-team give me 2.2-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.2-develop branch, please add the label Reproduced on 2.2.x

  • [ ] 4. If the issue is not relevant or is not reproducible any more, feel free to close it.

Hi @cbend thank you for you report, the issue was tested and we can confirm that it's already fixed in 2.3-develop branch and available on 2.3.1 release -> https://github.com/magento/magento2/pull/11683

Was this page helpful?
0 / 5 - 0 ratings