Gambio: Test and go live

Test payment methods

Test your payment methods by simulating various payment statuses.

📘

Note

Switch to test mode

In test mode, Mollie simulates payments: no real money transfers occur.

  1. Log in to Gambio.
  2. Go to Modules > Modules-Center.
  3. Select Mollie from the module list.
  4. Select Edit.
  5. Switch on the Test mode toggle.
  6. Save the changes.

Make a test payment

  1. Make a test purchase in your Gambio shop.
  2. On the checkout page, select the payment method and submit the order.
  3. In the dialogue box, 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

To get status updates in test environments, do the following:

  • Ensure that you have admin access to the test server.
  • White-list Mollie's IP address range.
  • Make the following link public: http(s)://{your-domain}/shop.php?do=MollieWebhook.

Get status updates in local test environments

Mollie webhooks only work with public URLs. This means that when you're developing locally (for example, https://localhost:8000), you must create a temporary, public URL to tunnel Mollie HTTP traffic to your local host.

📘

Note

In principle, your local environment remains public for as long as the tunnel exists. However, tunneling apps usually provide options to restrict access.

  1. Download and install a tunneling app. We recommend using ngrok↗.
  2. 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.
  3. Add the public URL to the Mollie for Gambio configuration service (Mollie\Gambio\Services\Business\ConfigurationService) by modifying its getDebugUrl method.
/**
* Returns the debug url for your local environment
*
* @return string
*/
   public function getDebugUrl()
{
   return 'https://123456789.ngrok.io';
}

Go live

Go live to switch from test payments to actual payments.

📘

Note

You can only accept actual payments after Mollie has approved your website profile.

What you need to do in advance

  1. Ensure that you've completed the Mollie signup process.
  2. Set up the module according to your preferences.
  3. Test your payment methods to ensure they work properly.

Switch to live mode

  1. Log in to Gambio.
  2. Go to Modules > Modules-Center.
  3. Select Mollie from the module list.
  4. Select Edit.
  5. Switch off the Test mode toggle.
  6. Save the changes.