-
Notifications
You must be signed in to change notification settings - Fork 53
Dev Subscriptions
It's possible to test renewing of subscriptions locally. Please start by setting up NGROK with our Dev Guide for local webhooks. This is necessary to "confirm" created subscriptions after a checkout. Otherwise they are not active.
Afterwards you can easily renew a subscription by calling a local URL (Subscription Webhok). We would recommend our Swagger test project in the plugin repository. There is a webhook to renew a subscription.
You can simply call it, all you need is the correct data and a configuration in your .env.
The webhook requires the local subscription ID of Shopware. You can either find it in the administration (subscription overview) or in the database.
The second parameter is a transaction ID of Mollie. Just use any tr_xyz ID that exists in your Mollie Dashboard (maybe with a status that you want to try).
To make it work, we need a second configuration...
If you would send the request from above, the webhook will very likely respond with the error that the
transaction does not belong to this subscription.
This is for security reasons. To unlock a simple usage of all transaction IDs,
please add this to your .env
file.
MOLLIE_DEV_MODE=1
Repeat the request and it should all work now. Your subscription is renewed, and a new order should exist in Shopware.
German Support: meinsupport@mollie.com | International Support: info@mollie.com
- Apple Pay
- Apple Pay Direct
- Bancontact
- Belfius
- Billie
- Credit Card
- EPS
- Giftcard
- Giropay
- iDEAL
- in3
- KBC / CBC
- Klarna Pay Later
- Klarna Pay Now
- Klarna Slice It
- PayPal
- Paysafecard
- POS Terminals
- Przelewy24
- SEPA Bank Transfer
- SOFORT
- TWINT
- Voucher