When you have uploaded the script, you will see an installation form. You can skip the manual configuration below.
In the root of the project there is a file named
.env.example. Rename this file to
.env and open it with an editor. After configuring all settings, upload the file.
Make sure there is a dot (.) in front of the file name. If you rename the file in Windows check this out.
If you use mailgun, change:
And enter settings accordingly as found here.
MAIL_DRIVER=mailgun MAIL_HOST=smtp.mailgun.org MAIL_PORT=587 MAIL_ENCRYPTION=tls MAIL_USERNAME=[SMTP username] MAIL_PASSWORD=[SMTP password] # Mailgun settings (optional) MAILGUN_DOMAIN=[your mailgun domain, e.g. mg.example.com] # You can find the Private API key by logging in to your Mailgun dashboard # and navigate to Settings > API Security. MAILGUN_SECRET=[Private API key]
By default the admin can manage subscriptions and expiration dates manually.
If you use Stripe your webhook url is
https://example.yourdomain.com/api/webhooks/stripe. Replace "example.yourdomain.com" with the domain or subdomain of your installation. You can configure this in your Stripe dashboard if you go to Developers > Webhooks > Add endpoint. Or click here.
Select receive all events when adding the webhook endpoint, or:
If you use Paddle your receiving webhook url is
https://example.yourdomain.com/api/webhooks/paddle. Replace "example.yourdomain.com" with the domain or subdomain of your installation. You can configure this in your Paddle dashboard if you go to Developer Tools > Alers / Webhooks > URL for receiving webhook alerts. Or click here.
For 2Checkout your webhook (IPN) is
https://example.yourdomain.com/api/webhooks/2checkout/ipn. Replace "example.yourdomain.com" with the domain or subdomain of your installation. You can configure this in your 2Checkout dashboard if you go to Integrations > Webhooks & API > IPN settings > Add IPN URL. Or click here.
You will also find your Merchant code and Secret key on the IPN settings page.
Make sure these response tags are checked (others can be checked too, but the tags below are required):
Edit .env file
After editing and uploading this file, proceed with the next step.