Title here
Summary here
Below is a list of variables to configure the Platfone NodeJS Backend:
| Variable | Description | Category | Optional |
|---|---|---|---|
TZ | Timezone setting for the application (e.g., UTC). | General | Yes |
PORT | Port number for the application server (default: 3333). | General | Yes |
HOST | Hostname for the application server (default: localhost). | General | Yes |
LOG_LEVEL | Logging level for the application (e.g., info, debug, error). | General | Yes |
APP_KEY | Application encryption key for security purposes. | General | No |
NODE_ENV | Node.js environment (e.g., development, production). | General | No |
API_URL_PREFIX | URL prefix for API endpoints (e.g., /api/v2). | General | Yes |
APP_VERSIONS | JSON object containing version information for iOS and Android apps. | General | Yes |
DB_HOST | Hostname or IP address of the MySQL (MariaDB) server. | Database | No |
DB_PORT | Port number for the MySQL (MariaDB) server (default: 3306). | Database | No |
DB_USER | Username for connecting to the MySQL (MariaDB) database. | Database | No |
DB_PASSWORD | Password for connecting to the MySQL (MariaDB) database. | Database | No |
DB_DATABASE | Name of the MySQL (MariaDB) database for storing customer and payment data. | Database | No |
GOOGLE_APPLICATION_CREDENTIALS | Path to Firebase Admin SDK service account key file. | Firebase | No |
PLATFONE_API_URL | The URL for the Platfone API, either sandbox or production endpoint. | Platfone | No |
PLATFONE_API_KEY | API key for the Platfone API. | Platfone | No |
CUSTOMER_PRICE_MARKUP | Percentage markup applied to the cost of temporary phone numbers for profit. | Platfone | No |
PLATFONE_ADMINS_FIREBASE_UIDS | Comma-separated list of Firebase UIDs for admin access to the Platfone API. | Platfone | Yes |
STRIPE_ENABLED | Enable Stripe payments for users to top up their balance. | Stripe | Yes |
STRIPE_PUBLISHABLE_KEY | Stripe publishable API key for client-side purchases. | Stripe | Yes |
STRIPE_SECRET_KEY | Stripe secret API key used for creating customers and payment intents. | Stripe | Yes |
STRIPE_WEBHOOK_SECRET | Secret key for verifying incoming Stripe webhook messages. | Stripe | Yes |
STRIPE_METADATA_PAYMENT_SOURCE | Value added to each Stripe payment intent to distinguish it from other backends. | Stripe | Yes |
APPSTORE_ENABLE | Enable App Store in-app purchases as a payment option. | App Store | Yes |
APPSTORE_BUNDLE_ID | Unique bundle ID for your app in the App Store (e.g., com.example.app). | App Store | Yes |
APPSTORE_APP_ID | Numeric App ID for your app in the App Store, found in App Store Connect. | App Store | Yes |
APPSTORE_PRODUCTS | JSON object with product IDs and prices in cents for App Store purchases. | App Store | Yes |
GOOGLE_PLAY_ENABLE | Enable Google Play in-app purchases as a payment option. | Google Play | Yes |
GOOGLE_PLAY_SECRET_FILE | JSON content of service account key file for Google Play Console access. | Google Play | Yes |
GOOGLE_PLAY_PACKAGE_NAME | Package name of your app as defined in Google Play. | Google Play | Yes |
GOOGLE_PLAY_PRODUCTS | JSON object with product IDs and prices in cents for Google Play purchases. | Google Play | Yes |
PAYPAL_ENABLE | Enable PayPal payments as a payment option. | PayPal | Yes |
PAYPAL_CLIENT_ID | Client ID for your PayPal account. | PayPal | Yes |
PAYPAL_ENVIRONMENT | PayPal environment setting (sandbox or production). | PayPal | Yes |
PAYPAL_CLIENT_SECRET | Client Secret for your PayPal account. | PayPal | Yes |
PAYPAL_WEBHOOK_ID | Webhook ID for your PayPal account. | PayPal | Yes |
CRYPTOMUS_ENABLE | Enable Cryptomus Crypto Payment Gateway as a payment option. | Cryptomus | Yes |
CRYPTOMUS_MERCHANT_ID | Merchant ID for your Cryptomus account. | Cryptomus | Yes |
CRYPTOMUS_API_KEY | API Key for your Cryptomus account. | Cryptomus | Yes |
CRYPTOMUS_CALLBACK_URL | Callback URL for Cryptomus payments. | Cryptomus | Yes |
PAYEER_ENABLE | Enable Payeer as a payment option. | Payeer | Yes |
PAYEER_MERCHANT_ID | Merchant ID for your Payeer account. | Payeer | Yes |
PAYEER_API_KEY | API Key for your Payeer account. | Payeer | Yes |
OXPROCESSING_ENABLE | Enable 0xprocessing as a payment option. | 0xprocessing | Yes |
OXPROCESSING_WEBHOOK_PASSWORD | Webhook password for your 0xprocessing account. | 0xprocessing | Yes |
BINANCE_ENABLE | Enable Binance as a payment option. | Binance | Yes |
BINANCE_API_KEY | API Key for your Binance account. | Binance | Yes |
BINANCE_API_SECRET | API Secret for your Binance account. | Binance | Yes |
BINANCE_MERCHANT_ID | Merchant ID for your Binance account. | Binance | Yes |
BINANCE_PUBLIC_KEY | Public Key for your Binance account. | Binance | Yes |
BINANCE_BASE_URL | Base URL for Binance API. | Binance | Yes |
ANYPAY_ENABLE | Enable anypay as a payment option. | Anypay | Yes |
ANYPAY_PAYMENT_MIN_AMOUNT | Minimum amount (in cents) for anypay payment. | Anypay | Yes |
ANYPAY_SECRET_KEY | Secret Key for your anypay account. | Anypay | Yes |
ANYPAY_MERCHANT_ID | Merchant ID for your anypay account. | Anypay | Yes |
ANYPAY_WEBHOOK_WHITELISTED_IP | Array of whitelisted IP addresses for anypay webhook. | Anypay | Yes |
WENJISHOU_ENABLED | Enable Wenjishou as a payment option. | Wenjishou | Yes |
WENJISHOU_CNY_EXCHANGE_RATE | Exchange rate for CNY to USD for Wenjishou payments. | Wenjishou | Yes |
PAYMENT_MAX_AMOUNT | Maximum amount (in cents) for any payment. | Payment | Yes |
TELEGRAM_AUTH_ENABLED | Enable Telegram authentication as a login option. | Telegram | Yes |
TELEGRAM_BOT_TOKEN | Telegram Bot Token for your Telegram bot. | Telegram | Yes |
SENDMAIL_ENABLED | Enable email notifications. | Yes | |
SMTP_DOMAIN | Domain for send from and unsubscribe links. | Yes | |
SMTP_HOST | SMTP server hostname for sending emails. | Yes | |
SMTP_PORT | SMTP server port number. | Yes | |
SMTP_SECURE | Whether SMTP connection should use SSL/TLS. | Yes | |
SMTP_USER | SMTP server username for authentication. | Yes | |
SMTP_PASS | SMTP server password for authentication. | Yes | |
CONTACT_FORM_EMAIL_TO | Email address to send contact form messages to. | Yes | |
CONTACT_FORM_EMAIL_FROM | Email address to send contact form messages from. | Yes | |
RECAPTCHA_ENABLED | Enable ReCaptcha Enterprise for form protection. | ReCaptcha | Yes |
RECAPTCHA_PROJECT_ID | Google Cloud Project ID for ReCaptcha Enterprise. | ReCaptcha | Yes |
RECAPTCHA_SITE_KEY | ReCaptcha Site Key for your ReCaptcha account. | ReCaptcha | Yes |
RECAPTCHA_MIN_SCORE | Minimum score required for ReCaptcha validation. | ReCaptcha | Yes |