Payment Notify

Get notified about received PayPal and Litecoin payments.

Two monitors, one file. Both watch for incoming payments and post a Discord webhook message when one lands.

Configuration file

modules/payments.json

Litecoin payments

Configure notifications for Litecoin transactions.

SettingDescriptionDefault
addressYour Litecoin wallet address.—
webhookDiscord webhook URL for notifications.—
confirmationsNumber of confirmations before notification.2
pingUser ID to ping in notifications.null

Litecoin setup

  1. Get your address. Copy your LTC wallet address from your wallet app and paste it in the config.
  2. Checking frequency. The monitor checks for new transactions periodically. Be patient for new payments to appear.
{
  "litecoin": {
"enabled": true,
"address": "LTC_WALLET_ADDRESS"",
"webhook": "DISCORD_WEBHOOK_URL"",
"confirmations": 2,
"last_tx_count": 0,
"ping": null,
"payload": {
  "username": "Pashka | Litecoin Payments"",
  "avatar_url": "https://i.e-z.host/kavdt6p1.png"",
  "embed": {
    "title": "- Payment Received"",
    "color": "#2b2d31"",
    "fields": [
      {"name": "Amount"", "value": "{amount} LTC"", "inline": true},
      {"name": "Value"", "value": "{usd} USD"", "inline": true},
      {"name": "Confirms"", "value": "{confirmations}"", "inline": true},
      {"name": "Transaction"", "value": "{tx_hash}"", "inline": false}
    ],
    "footer": {
      "text": "Pashka | Litecoin Payments"",
      "icon_url": "https://i.e-z.host/a8oyrvt5.png""
    }
  }
}
  }
}

PayPal payments

Configure notifications for PayPal transactions.

SettingDescriptionDefault
emailPayPal email address receiving payments.[email protected]
webhookDiscord webhook URL for notifications.—

PayPal IPN setup

  1. Enable IPN. Log in to your PayPal account, go to Account Settings and Notifications, then click Update next to Instant Payment Notifications.
  2. Configure the notification URL. Check "Receive IPN messages", enter https://pashka.sbs/api/ipn, and save the changes.
{
  "paypal": {
"enabled": true,
"email": "[email protected]"",
"webhook": "DISCORD_WEBHOOK_URL"",
"ping": null,
"payload": {
  "username": "Pashka | PayPal Payments"",
  "avatar_url": "https://i.e-z.host/kavdt6p1.png"",
  "embed": {
    "title": "- Payment Received"",
    "color": "#2b2d31"",
    "fields": [
      {"name": "Amount"", "value": "{amount} {currency}"", "inline": true},
      {"name": "Fee"", "value": "{fee}"", "inline": true},
      {"name": "Type"", "value": "{payment_type}"", "inline": true},
      {"name": "Name"", "value": "{customer_name}"", "inline": true},
      {"name": "Country"", "value": "{country}"", "inline": true},
      {"name": "Account"", "value": "{payer_status}"", "inline": true},
      {"name": "Mail"", "value": "{email}"", "inline": false},
      {"name": "Transaction"", "value": "{tx_id}"", "inline": false}
    ],
    "footer": {
      "text": "Pashka | PayPal Payments"",
      "icon_url": "https://i.e-z.host/a8oyrvt5.png""
    }
  }
}
  }
}

Security notes

  • Keep your webhook URL private.
  • Consider using a dedicated Litecoin address just for the bot.
  • Monitor your PayPal IPN settings regularly.