How to Set Up Stripe Payments
Accept credit and debit card payments through Stripe on your IPTVbp store.
Create a Stripe account
You can start integrating immediately using Stripe's test mode while your account is being reviewed.
Get your API keys
- Test mode keys (start with pk_test_ and sk_test_) — use these for testing - Live mode keys (start with pk_live_ and sk_live_) — use these for real payments
Copy both the Publishable key and the Secret key. Start with test mode keys for initial setup.
Use test mode keys first (sk_test_ and pk_test_) to verify everything works before switching to live keys.
Never expose your Secret Key publicly. It should only be stored in IPTVbp's secure settings, never in client-side code or shared with anyone.
Set up the webhook
- Endpoint URL: https://your-domain.com/api/webhooks/stripe (replace your-domain.com with your actual store domain) - Events to listen for: Select the following events: -
checkout.session.completed
- payment_intent.succeeded
- payment_intent.payment_failed
- customer.subscription.updated
- customer.subscription.deletedAfter creating the endpoint, click on it and copy the Signing secret (starts with whsec_).
If you use a custom domain, use that domain in the webhook URL. If you use the IPTVbp platform URL, use that instead.
Add Stripe in IPTVbp
| Field | Description | Required |
|---|---|---|
| Publishable Key | Your Stripe publishable API key. Starts with pk_test_ (test mode) or pk_live_ (live mode). | Yes |
| Secret Key | Your Stripe secret API key. Starts with sk_test_ (test mode) or sk_live_ (live mode). | Yes |
| Webhook Secret | The signing secret from your Stripe webhook endpoint. Starts with whsec_. | Yes |
Test with a test payment
- Successful payment: 4242 4242 4242 4242 - Declined payment: 4000 0000 0000 0002 - Requires authentication: 4000 0025 0000 3155
Use any future expiration date, any 3-digit CVC, and any postal code.
Check the Stripe Dashboard > Payments section to confirm the test payment appears. Also verify that the webhook was received under Developers > Webhooks.
Switch to live mode
Make sure your Stripe account verification is complete before switching to live mode. Stripe will not process live payments until your account is fully verified.
Ready to Get Started?
Join the waitlist and be among the first to automate your business.