Closed gglobalstep closed 3 years ago
Doing some research into this bug, updating the option name use from 'woocommerce_mercadopago_settings'
to 'woocommerce_woo-mercado-pago-basic_settings'
would fix this issue. Although as soon as the user loads the Settings > Payments screen it will be reset to disabled unless the user has added there credentials for one of the environments.
Here is the code that sets enabled back to no
if either the prod or test access_token
is not set. I could set it to an empty string, which should keep it as enabled (but this is not intended, so don't recommend this).
https://plugins.trac.wordpress.org/browser/woocommerce-mercadopago/trunk/includes/payments/class-wc-woomercadopago-payment-abstract.php#L1709
@pmcpinto @elizaan36 for this instance where the credentials are required (but we don't ask for them in the set up flow), should we keep the Set up
button present, until these credentials are added?
If the plugin is already installed it will show step 2 right away -> Connect to your Mercado Pago account
(this has a link to the store settings page).
for this instance where the credentials are required (but we don't ask for them in the set up flow), should we keep the Set up button present, until these credentials are added?
Looks like a good workaround to this issue.
@louwie17 This issue is still observed to be Open on the following Environment:
Environment: Woocommerce Version : WooCommerce 5.2.2 and 5.3.0 Beta WordPress version: (v5.7)
PC: Windows 10, Mac 10.14.6 Chrome(Version 89.0.4389.90) Firefox(Version 87.0) Safari: v13.1.1
Thanks @gglobalstep, the issue was only partially solved as part of this ticket. We have an open issue https://github.com/woocommerce/woocommerce-admin/issues/6680 that will address this more fully.
Bug Description:
Mercado Pago Payments option fails to stay active for all the country addresses.
Test Instructions:
https://github.com/woocommerce/woocommerce-admin/blob/release/2.2.0-beta.1/TESTING-INSTRUCTIONS.md#payments-task-include-mercado-pago-6572
Environment:
Woocommerce Version : WooCommerce 5.1 WordPress version: (v5.7) WooCommerce Admin version: v2.2.0-Beta-2
PC: Windows 10, Mac 10.14.6 Chrome(Version 88.0.4324.104) Firefox(Version 86.0) Safari: v13.1.1 IE 11(Version 11.55.17763.0)
Steps To Reproduce:
Note: For Windows: It fails to display as an option in "Choose payments section" on "WooCommerce-Home" page For Windows and Mac: Also observe that the user is unable to turn on "Mercado payments" from "WooCommerce-Settings-Payments" tab
Actual Result:
Mercado Pago Payments option fails to stay active for all the country addresses.
Expected Result:
Mercado Pago Payments option should stay active for all the country addresses after its setup is completed.
Videos:
https://user-images.githubusercontent.com/41110392/112187847-771e7f80-8c28-11eb-9f5d-e8da3751189d.mp4
https://user-images.githubusercontent.com/41110392/112187886-8271ab00-8c28-11eb-8c99-805b2bdcbae3.mp4
Isolating the problem (mark completed items with an [x]):