Payment Gateways
Payment gateways handle the actual processing of customer payments. BadgerPanel supports Stripe and PayPal out of the box.
Gateway Settings Page
Navigate to Admin > Billing > Settings > Payment Gateways to manage your payment providers. You can enable one or both gateways. Customers will see all enabled gateways as options during checkout.
Stripe Setup
Stripe is the recommended gateway for card payments, supporting credit cards, debit cards, and various regional payment methods.
Configuration
- Navigate to Admin > Billing > Settings > Payment Gateways.
- Enable Stripe.
- Enter your Secret Key (starts with
sk_live_orsk_test_). - Enter your Publishable Key (starts with
pk_live_orpk_test_). - Click Save.
Webhook Setup
Stripe webhooks allow the panel to receive real-time payment notifications (successful charges, refunds, disputes, etc.).
- In your Stripe Dashboard, navigate to Developers > Webhooks.
- Click Add Endpoint.
- Set the endpoint URL to:Replace
https://panel.example.com/api/billing/webhooks/stripepanel.example.comwith your actual panel domain. - Select the events to listen for. At minimum, enable:
checkout.session.completedinvoice.paidinvoice.payment_failedcustomer.subscription.deleted
- Copy the Webhook Signing Secret (starts with
whsec_) and enter it in the panel's Stripe settings. - Click Save in both the Stripe Dashboard and the panel.
Stripe Test Mode
Use Stripe test keys (prefixed with sk_test_ and pk_test_) to process test payments without real charges. Stripe provides test card numbers for simulating different scenarios.
PayPal Setup
PayPal allows customers to pay using their PayPal balance, linked bank accounts, or cards through PayPal's checkout flow.
Configuration
- Navigate to Admin > Billing > Settings > Payment Gateways.
- Enable PayPal.
- Enter your Client ID.
- Enter your Client Secret.
- Click Save.
Obtaining PayPal API Credentials
- Log in to the PayPal Developer Dashboard.
- Navigate to Apps & Credentials.
- Create a new app or select an existing one.
- Copy the Client ID and Client Secret from the app details.
- For production payments, make sure you are viewing Live credentials, not Sandbox.
Testing Payments
Before going live, verify your gateway configuration with test transactions:
- Configure your gateway with test/sandbox credentials.
- Create a simple product with a low price.
- Place a test order as a customer.
- Complete the checkout with test payment details.
- Confirm that the order status updates to Paid and the server is provisioned (if auto-activate is enabled).
- Check that the webhook is delivering events correctly by reviewing the webhook logs in your Stripe or PayPal dashboard.
Once testing is complete, replace your test credentials with live production credentials and save.
Next Steps
- Orders and Invoices - tracking payments
- Products - configuring what you sell
- Billing Overview - global billing settings
