If you choose to work with Stripe, you’ll be able to offer one-time payments or subscriptions, and trial incentives.
This means that as a Site Manager, you have a choice regarding the way your sponsors pay. They will either have to enter a new payment through the sponsor’s billing interface at the end of every billing cycle, or they may be able to subscribe and have an automatic recurring payment. With trial incentives, you can offer deals such as "Sign up now and get the first month free", for example.
Stage 1: Get the Stripe API
Before enabling Stripe on eDirectory, you need to get the API from the Stripe website.
Stripe website > Create account > Sign in > Your account > Developers > API Keys
1. Go to the Stripe website here.
2. Create an account.
3. You may need to access your email to confirm your account and click a link to sign in to the Stripe dashboard.
4. Make sure your account is Active by adding your Credit Card information.
4. Select Developers on the side menu.
5. Click on API Keys.
6. The key you must use is Secret Key, please click on "Reveal live key" and copy it.
*Make sure you are not on Test Mode.
Stage 2: Enable Stripe on eDirectory
Now that you have the Stripe API, you are ready to enable Stripe on eDirectory.
Site Manager > Configuration > Manage Levels & Pricing > Payment Gateways > Enable Stripe
1. Log in to the Site Manager, and open the Configuration tab.
2. Select Manage Levels & Pricing from the submenu.
3. Click on Payment Gateways.
4. Check the Enable Stripe box.
5. Paste the Stripe API into the API Key field.
6. If you want to use the Feature Recurring, Please enable it here:
7. After configuring Stripe, on Manage Levels & Pricing, you can select if you want to enable a Trial for each plan and define the amount of time.
Stage 3: Configure the webhook URL
A webhook URL is needed so items paid by subscription can be renewed on eDirectory.
Stripe > Developers > Webhooks > + Add endpoint
1. Sign in to Stripe
2. Still on Developers, please open the Webhooks tab.
3. Click on + Add endpoint.
5. In the URL field, enter [yourdomain]/sponsors/billing/stripe_webhook.php with your directory’s domain in the brackets.
7. Click the Select events button.
8. Search on the drop-down list for invoice.payment_succeeded and check its box.
9. Click on Add endpoint and it's done!
Attention: If you have add-ons, you will have to create a Webhook for each domain.
If you need any further assistance, please contact our Support team at email@example.com.