Skip to content

Uninstall hub

willian-soaresferreira edited this page Jul 6, 2021 · 2 revisions

Before change your production store configuration, we recommend to test these steps in a development or staging environment.



Uninstall Hub Integration


To uninstall a hub integration in Magento 2 module, follow those steps:

Access Pagar.me Magento Integration Module settings by clicking on "Pagar.me" > "Payment Methods" item, scroll down to Other Payment Methods > Pagar.me.

Start clicking on button "View Integration" to be redirect at Hub page.

Hub Installed

Click on button "Excluir".

Hub Unistall Page

And then "Confirmar" in the popup that shows up.

Hub Unistall confirmation

If everything goes well, you'll be redirected to Magento 2 main page in hub. And when you go back to the admin page in your magento 2 instalation, you'll see the button "Integrate with Pagar.me" again:

General Settings

Manual Uninstallation

To manually remove a hub installation, go to your database and run the following query:

select * from core_config_data where path in (
"pagarme_pagarme/hub/install_id",
"pagarme_pagarme/hub/environment",
"pagarme_pagarme/global/secret_key",
"pagarme_pagarme/global/public_key") and scope_id = <SCOPE_ID>;

Change <SCOPE_ID> to the scope id of the desired website, and set the value for those records to NULL.

After that, flush magento 2 cache:

bin/magento cache:flush

Then, visit the Magento 2 integration page at hub In the section "Lojas Integradas", click in the three vertical points on the top right corner of the desired shop to uninstall.

Three Vertical points

And then choose the "Excluir" option, as the image below:

Remove integration manually

Clone this wiki locally