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.
5. Select Developers the menu, and make sure the Test mode is disabled.
6. Click on API Keys.
7. The key you must use is Secret Key, please click on API keys, and on the Secret key, click on "Reveal live key" and copy it.
Notice: Make sure the test mode is disabled. In order to disable it, Stripe requests customers to add their credit card information.
Stage 2: Enable Stripe on eDirectory
Now that you have the Stripe API, you are ready to enable Stripe on eDirectory.
Site Manager > Settings > Products & Plans > Additional settings & payment gateways > Enable Stripe
1. Log in to the Site Manager, and open the Settings tab.
2. Select Products & Plans from the submenu.
3. Click on Additional settings & Payment Gateways.
4. Check the Enable Stripe box.
5. Paste the Stripe API into the API Key field and save changes.
6. If you want to use the Feature "Autobill", which allows your site to automatically charge your customers for their listings at the end of their billing cycle, click on the toggle button to enable this feature as demonstrated below:
Notice: The Auto bill feature is only available for PayPal, Authorize and Stripe.
![](https://s3-eu-central-1.amazonaws.com/euc-cdn.freshdesk.com/data/helpdesk/attachments/production/77172844346/original/b61IirXqQmafxDRYmjlU2cqZft765PGWzA.png?1718718979)
Notice: The trial feature is only available for Stripe payment gateway, and your user will only get the trial period if they choose to pay by Stripe (Credit card). If you would like to learn more on how to add a plan, please, refer to this article: Products and Plans for New Clients: Explanation of the new terms
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.
4. In the URL field, enter [yourdomain]/sponsors/billing/stripe_webhook.php with your directory’s domain in the brackets (Remember that if the site was configured to have www. as a mandatory prefix, it must also be inserted in this part).
Notice: Don't forget to replace "yourdomain" in brackets with your live website URL.
5. Click the Select events button.
6. Search on the drop-down list for invoice.payment_succeeded and check its box.
7. Click on Add endpoint and it's done!
Notice: 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 support@edirectory.com.