Setup
Installation and initial setup for the Store plugin.
Installation
To install this plugin, follow these steps:
- Download the plugin files and place them in your
/pluginsfolder. - Download the dependency ZDLibrary via GitHub.
- Join our Discord server ( discord.gg/zerodev ) and open a ticket to request a license key.
- Paste your license key into the
LICENSE_KEYfield inconfiguration/store.json5. - Configure at least one payment provider (see below).
- Restart AthenaBot via
npm startornode index.js.
Payment Providers
The Store plugin supports multiple payment providers. You only need to configure the ones you plan to use. Set provider on each product in panel_linking to control which provider handles that product's checkout.
Stripe
- Log in to your Stripe Dashboard.
- Go to Developers → API Keys and copy your Secret Key (
sk_live_...orsk_test_...). - Paste it into
providers.stripe.secret_keyinconfiguration/store.json5. - Go to Developers → Webhooks and create a new endpoint:
- URL:
https://<your-server>/api/store/webhook/stripe - Event:
checkout.session.completed
- URL:
- Copy the Signing Secret (
whsec_...) intoproviders.stripe.webhook_secret.
PayPal
- Log in to the PayPal Developer Dashboard.
- Create an App under My Apps & Credentials and copy the Client ID and Client Secret.
- Paste them into
providers.paypal.client_idandproviders.paypal.client_secret. - Set
providers.paypal.modeto"sandbox"for testing or"live"for production. - Go to Webhooks and create an endpoint:
- URL:
https://<your-server>/api/store/webhook/paypal - Event:
PAYMENT.CAPTURE.COMPLETED
- URL:
- Copy the Webhook ID into
providers.paypal.webhook_id.
Razorpay
- Log in to your Razorpay Dashboard.
- Go to Settings → API Keys and generate a key pair.
- Paste the Key ID into
providers.razorpay.key_idand the Key Secret intoproviders.razorpay.key_secret. - Go to Settings → Webhooks and create an endpoint:
- URL:
https://<your-server>/api/store/webhook/razorpay - Event:
payment_link.paid
- URL:
- Copy the Webhook Secret into
providers.razorpay.webhook_secret.
Polar.sh
- Log in to your Polar Dashboard.
- Go to Settings → Developers and create an Access Token.
- Paste it into
providers.polar.access_token. - Go to Settings → Webhooks and create an endpoint:
- URL:
https://<your-server>/api/store/webhook/polar - Event:
order.created
- URL:
- Copy the Webhook Secret into
providers.polar.webhook_secret. - Set
providers.polar.serverto"sandbox"or"production". - In your
panel_linking, addpolar_price_idto each Polar product, pointing to the Product Price ID from your Polar dashboard.
Crypto (NOWPayments)
- Sign up at NOWPayments and create an API key.
- Paste the API Key into
providers.crypto.api_key. - Go to Settings → IPN Settings and create an endpoint:
- URL:
https://<your-server>/api/store/webhook/crypto
- URL:
- Copy the IPN Secret into
providers.crypto.ipn_secret.
Channel Setup
The Store plugin uses AthenaBot's built-in /setup system to configure its log channel.
Run /setup in your Discord server and set the following channel:
| Channel | Description |
|---|---|
store-logs | Receives a log entry after every completed purchase. |

