Skip to main content

Stripe Configuration Reference

Quick reference for Stripe payment gateway settings.

Step-by-Step Tutorials

For complete setup instructions, see:

Settings Overview

Located at PaywallWP → Settings → Payments → Stripe

SettingDescription
ModeDisabled, Test Mode, or Live Mode
Publishable KeyYour pk_test_ or pk_live_ key
Secret KeyYour sk_test_ or sk_live_ key
Webhook SecretYour whsec_ webhook signing secret

API Keys

Get your keys from Stripe Dashboard → Developers → API Keys

EnvironmentPublishable KeySecret Key
Testpk_test_...sk_test_...
Livepk_live_...sk_live_...

Webhook URL

https://yoursite.com/wp-json/paywallwp/v1/stripe-webhook

Create webhooks at Stripe Dashboard → Developers → Webhooks

Required Events

EventPurpose
checkout.session.completedInitial payment
customer.subscription.createdNew subscription
customer.subscription.updatedSubscription changes
customer.subscription.deletedCancellation
invoice.paidRenewal payment
invoice.payment_failedFailed payment
charge.refundedRefund

Test Cards

CardResult
4242 4242 4242 4242Success
4000 0000 0000 0002Declined
4000 0025 0000 31553D Secure required

Use any future expiry, any 3-digit CVC, any ZIP code.

ResourceURL
Test API Keyshttps://dashboard.stripe.com/test/apikeys
Live API Keyshttps://dashboard.stripe.com/apikeys
Test Webhookshttps://dashboard.stripe.com/test/webhooks
Live Webhookshttps://dashboard.stripe.com/webhooks
Test Paymentshttps://dashboard.stripe.com/test/payments
Test Cards Referencehttps://docs.stripe.com/testing#cards

Troubleshooting

IssueSolution
Invalid API KeyCheck key format matches mode (test/live)
Webhook errorsVerify URL, HTTPS, and signing secret
Payment works, subscription doesn'tWebhook issue — check delivery logs

For detailed troubleshooting, see the Troubleshooting Guide.