Paystack Sandbox Test

Test your Paystack integration in sandbox mode

Paystack Test Cards
Use these cards to test different payment scenarios
Success
4084 0840 8408 4081

Use any CVV & future expiry. OTP: 123456

Decline
5060 6600 0000 0064

Simulates failed payment

Insufficient Funds
5078 5078 5078 5078

Simulates insufficient funds error

Recent Webhooks
0
Webhook events from Paystack

No webhooks received yet

Make a test payment to see webhooks here

Recent Payments
0
Payment transactions via Paystack

No payments yet

Test payments will appear here

Testing Checklist ✅
  1. 1️⃣ Click "Start Test Payment" button above
  2. 2️⃣ Select a plan (Basic or Premium)
  3. 3️⃣ Use test card: 4084 0840 8408 4081
  4. 4️⃣ Enter any CVV and future expiry date
  5. 5️⃣ Use OTP: 123456
  6. 6️⃣ Check if webhooks and payments appear above
  7. 7️⃣ Verify subscription is created and status is active
How to Verify Paystack Integration

✅ Paystack is Properly Linked When:

  1. ✓ Payments appear in "Recent Payments" section above
  2. ✓ Webhooks show up in "Recent Webhooks" with processed: true
  3. ✓ Subscription status changes to "active" after payment
  4. ✓ You see records in your Paystack Dashboard (sandbox)
  5. ✓ Payment records include paystack_reference field

🔄 Cancellation Handling:

✅ Configured: Webhook handler now processes both payments AND cancellations!

Supported webhook events:

  • ✓ charge.success - Payment confirmations
  • ✓ subscription.disable - Cancellation handling
  • ✓ subscription.cancelled - Alternative cancellation event
  • ✓ Automatic subscription status updates to "canceled"
  • ✓ Event logging in SubscriptionEvent entity

🔗 Webhook URL Setup:

In your Paystack Dashboard → Settings → Webhooks, add:

https://your-domain.com/PaystackWebhook

Note: This currently redirects after payment. For production, create a proper backend endpoint to handle all webhook events.