MOCK API · Stripe
Stripe API mock
Test your checkout flow, Payment Intents and Stripe webhooks without processing a real charge — you don't even need a Stripe account to develop.
Example endpoints
POST
/v1/payment_intents
Creates a charge — returns the Payment Intent with a client_secret for checkout.
curl
curl -X POST https://httpdrop.com/mock/YOUR_ENDPOINT_ID/v1/payment_intents \ -d amount=2000 -d currency=usd
Response
{
"id": "pi_3Nx7Y2K",
"object": "payment_intent",
"amount": 2000,
"currency": "usd",
"status": "requires_payment_method",
"client_secret": "pi_3Nx7Y2K_secret_abc"
}
GET
/v1/payment_intents/:id
Checks the status of an existing charge.
curl
curl https://httpdrop.com/mock/YOUR_ENDPOINT_ID/v1/payment_intents/pi_3Nx7Y2K
Response
{
"id": "pi_3Nx7Y2K",
"status": "succeeded",
"amount_received": 2000
}
Webhook example
EVENT
payment_intent.succeeded
Configure this as a Mock Rule response body and use Response Sequences or the SSE mode to push it — see the webhook architecture guide.
{
"id": "evt_1Nx7Y2K",
"type": "payment_intent.succeeded",
"data": {
"object": { "id": "pi_3Nx7Y2K", "status": "succeeded", "amount": 2000 }
}
}
Transparency note: The examples above are illustrative, based on Stripe's public documentation — not the official source and don't cover every field. Always check the official Stripe docs for your integration's exact details. If anything changed, let us know.
Start mocking Stripe now
Create a free endpoint, no credit card required, and paste the rules above.
Create free mock All providers →