Magento 2: Test payment methods

Note

Switch to test mode

  1. Log in to Magento 2.

  2. Go to Stores > Configuration.

  3. On the Configuration page, scroll to Mollie, select the arrow, and then General.

  4. Select Test from the Modus drop-down menu under API details.

  5. Save the changes.

Make a test payment

  1. Make a test purchase in your Magento 2 store.

  2. On the checkout page, select the payment method and submit the order.

  3. In the dialogue box that appears, select a payment status and click Continue.

    This takes you to a page that provides information about the payment's status. For example, if you selected Paid, the page confirms a successful payment.

Get status updates in local environments

  1. Download and install a tunneling app. We recommend using ngrok↗.

  2. Start an HTTP tunnel:

    ngrok http 80 -region eu

    The output is similar to the following, and contains the URL of your public domain:

    Forwarding http://9229455c6109.eu.ngrok.io -> http://localhost:80
  3. Change the base URL manually in the backend of your Magento 2 installation.

    Alternatively, use n98-magerun↗ to change the URL:

    export SHOPHOST="acme-store.eu.ngrok.io"
    n98-magerun2 config:store:set web/unsecure/base_url http://$SHOPHOST/
    n98-magerun2 config:store:set web/secure/base_url https://$SHOPHOST/
    n98-magerun2 config:store:set web/unsecure/base_link_url https://$SHOPHOST/
    n98-magerun2 config:store:set web/secure/base_link_url https://$SHOPHOST/
    n98-magerun2 cache:flush
  4. Depending on your installation, you may need to add the ngrok URL as a virtual host or alias to your Apache or NGINX server.

    If you use Laravel Valet or Laravel Valet +, run the following:

    valet link acme-store.eu.ngrok.io