Docs

Setup

Installation and initial setup for the Store plugin.

Installation

To install this plugin, follow these steps:

  1. Download the plugin files and place them in your /plugins folder.
  2. Download the dependency ZDLibrary via GitHub.
  3. Join our Discord server ( discord.gg/zerodev ) and open a ticket to request a license key.
  4. Paste your license key into the LICENSE_KEY field in configuration/store.json5.
  5. Configure at least one payment provider (see below).
  6. Restart AthenaBot via npm start or node 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

  1. Log in to your Stripe Dashboard.
  2. Go to Developers → API Keys and copy your Secret Key (sk_live_... or sk_test_...).
  3. Paste it into providers.stripe.secret_key in configuration/store.json5.
  4. Go to Developers → Webhooks and create a new endpoint:
    • URL: https://<your-server>/api/store/webhook/stripe
    • Event: checkout.session.completed
  5. Copy the Signing Secret (whsec_...) into providers.stripe.webhook_secret.

PayPal

  1. Log in to the PayPal Developer Dashboard.
  2. Create an App under My Apps & Credentials and copy the Client ID and Client Secret.
  3. Paste them into providers.paypal.client_id and providers.paypal.client_secret.
  4. Set providers.paypal.mode to "sandbox" for testing or "live" for production.
  5. Go to Webhooks and create an endpoint:
    • URL: https://<your-server>/api/store/webhook/paypal
    • Event: PAYMENT.CAPTURE.COMPLETED
  6. Copy the Webhook ID into providers.paypal.webhook_id.

Razorpay

  1. Log in to your Razorpay Dashboard.
  2. Go to Settings → API Keys and generate a key pair.
  3. Paste the Key ID into providers.razorpay.key_id and the Key Secret into providers.razorpay.key_secret.
  4. Go to Settings → Webhooks and create an endpoint:
    • URL: https://<your-server>/api/store/webhook/razorpay
    • Event: payment_link.paid
  5. Copy the Webhook Secret into providers.razorpay.webhook_secret.

Polar.sh

  1. Log in to your Polar Dashboard.
  2. Go to Settings → Developers and create an Access Token.
  3. Paste it into providers.polar.access_token.
  4. Go to Settings → Webhooks and create an endpoint:
    • URL: https://<your-server>/api/store/webhook/polar
    • Event: order.created
  5. Copy the Webhook Secret into providers.polar.webhook_secret.
  6. Set providers.polar.server to "sandbox" or "production".
  7. In your panel_linking, add polar_price_id to each Polar product, pointing to the Product Price ID from your Polar dashboard.

Crypto (NOWPayments)

  1. Sign up at NOWPayments and create an API key.
  2. Paste the API Key into providers.crypto.api_key.
  3. Go to Settings → IPN Settings and create an endpoint:
    • URL: https://<your-server>/api/store/webhook/crypto
  4. 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:

ChannelDescription
store-logsReceives a log entry after every completed purchase.

On this page