Gambio: Test payment methods

Note

Switch to test mode

  1. Log in to Gambio.

  2. Go to icon-puzzle-piece.png Modules > Modules-Center.

  3. Select Mollie from the module list.

  4. Select Edit.

  5. Turn on the Test mode toggle.

  6. Save the changes.

Make a test payment

  1. Make a test purchase in your Gambio shop.

    While making payment, a selection dialogue appears, enabling you to test various payment statuses.

    screenshot-test-payment-page.png
  2. 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 test environments

Tip

To get status updates in test environments, you need administrator access to your server.

  1. Make the following link public: http(s)://{your-domain}/shop.php?do=MollieWebhook.

  2. Whitelist Mollie's IP address range.

Get status updates in local test environments

What you need to do in advance

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

  1. Run a command to overwrite the domain. For example:

    ./ngrok http --host-header=rewrite my-local-gambio-domain:443

    The app returns a public URL such as https://123456789.ngrok.io.

  2. Add the public URL to the Mollie for Gambio configuration service (Mollie\Gambio\Services\Business\ConfigurationService) by modifying its getDebugUrlmethod.

    /**
    * Returns the debug url for your local environment
    *
    * @return string
    */
       public function getDebugUrl()
    {
       return 'https://123456789.ngrok.io';
    }