Get your API key from Mollie
1
Sign in
Open your Mollie Dashboard and sign in.
2
Open the API keys
Go to Developers, then API keys.
3
Copy the keys
Copy the live key, which starts with
live_, and the test key, which starts with test_.Add the keys in MagicPost
1
Open the Mollie card
Go to Admin → Finance → Payment Gateways and click Mollie. The page is titled Mollie Settings.
2
Enable it
Under General, turn on Status, then choose Live or Sandbox under Mode.
3
Paste the keys
Under Keys, fill in:
- Live Mollie API Key, described as “Your live API key, starts with live_”
- Sandbox Mollie API Key, described as “Your test API key, starts with test_”
4
Save
Click Save. You see “Mollie settings saved successfully.”
How payments work
One-time plans (Prepaid, Lifetime). MagicPost creates a Mollie payment for the plan price and redirects the customer to Mollie. On return, MagicPost fetches the payment and records the order only if Mollie reports it as paid. For Lifetime plans it also creates the subscription. Recurring plans (Monthly, Yearly). MagicPost creates a Mollie customer for the buyer and a first payment for the plan price. That first payment sets up the customer’s mandate. When the customer returns and the payment is paid, MagicPost records the order and creates a Mollie subscription that bills every month (Monthly) or every 12 months (Yearly). Mollie has no plan object, so there is nothing to create at Mollie ahead of time. Webhook. Mollie only sends a payment ID. MagicPost fetches that payment from Mollie and acts on its status:- A paid payment that belongs to a recurring subscription extends the subscriber’s period and renews the credit allowance.
- A cancelled, expired or failed payment that belongs to a subscription marks the subscriber as cancelled.
Currency
MagicPost sends the plan’s currency in uppercase and the price with two decimals. Your Mollie account must support the currency and the payment methods you want to offer.Test mode
Enter yourtest_ key in Sandbox Mollie API Key, select Sandbox under Mode and save. Payments then run against Mollie’s test environment. Switch Mode back to Live before you sell.
Common errors
This payment method is not available right now.
This payment method is not available right now.
Status is off for Mollie. Turn it on and save.
Mollie could not start the payment. Please try again.
Mollie could not start the payment. Please try again.
The request to Mollie failed, usually because the API key for the active Mode is missing or wrong. Check
storage/logs/laravel.log.Mollie returned an unexpected response.
Mollie returned an unexpected response.
Mollie answered but did not open a payment, for example because the currency or payment method is not enabled on your account.
Mollie customer create failed. / Mollie first payment failed.
Mollie customer create failed. / Mollie first payment failed.
These appear for Monthly and Yearly plans when the customer or the first payment could not be created at Mollie.
We could not prepare this plan for Mollie billing. Please contact support.
We could not prepare this plan for Mollie billing. Please contact support.
The API key for the active Mode is missing, or the plan is not a Monthly or Yearly plan with a price above zero.
Missing Mollie session reference. / Mollie payment lookup failed. / Payment was not completed.
Missing Mollie session reference. / Mollie payment lookup failed. / Payment was not completed.
The customer came back in a different browser session, Mollie could not be reached, or the payment is not paid.

