Prerequisites
- Stripe Account
- Access to Stripe Dashboard
- Your application ready for integration
Get API Keys
Open the Stripe Dashboard
Go to https://dashboard.stripe.com and log in to your Stripe account.
Access Webhook Workbench
Select Events
Configure Webhook Endpoint
Configure Destination
Set the endpoint URL
The endpoint URL must end with
/api/public/gateways/stripe/webhook/callback.For example:Webhook Created Successfully
Add Stripe to Spartan
Open the Stripe gateway
Log in to Spartan as an administrator, then go to Modules → Gateways → Stripe.
Troubleshooting
Common Issues
-
Invalid Credentials
- Verify Publishable Key and Secret Key are correct
- Ensure you’re using the right environment (test/live)
-
Webhook Not Receiving Events
- Check webhook URL is accessible
- Verify webhook endpoint URL ends with
/api/public/gateways/stripe/webhook/callback - Verify webhook is enabled and configured correctly
- Check your server logs for errors
-
Payment Failures
- Verify your Stripe account is in good standing
- Check if the payment amount is within limits
- Ensure all required fields are provided







