MOCK API · PayPal
PayPal API mock
Test PayPal order creation and capture, and payment confirmation webhooks, without the PayPal sandbox or a real transaction.
Example endpoints
POST
/v2/checkout/orders
Creates a checkout order.
curl
curl -X POST https://httpdrop.com/mock/YOUR_ENDPOINT_ID/v2/checkout/orders \
-H "Content-Type: application/json" \
-d '{"intent":"CAPTURE","purchase_units":[{"amount":{"currency_code":"USD","value":"100.00"}}]}'
Response
{
"id": "5O190127TN364715T",
"status": "CREATED",
"links": [
{ "href": "https://api.paypal.com/v2/checkout/orders/5O190127TN364715T", "rel": "self", "method": "GET" }
]
}
POST
/v2/checkout/orders/:id/capture
Captures payment for an order already approved by the buyer.
curl
curl -X POST https://httpdrop.com/mock/YOUR_ENDPOINT_ID/v2/checkout/orders/5O190127TN364715T/capture
Response
{
"id": "5O190127TN364715T",
"status": "COMPLETED",
"purchase_units": [{
"payments": { "captures": [{ "id": "3C679366HH908993F", "status": "COMPLETED", "amount": { "value": "100.00", "currency_code": "USD" } }] }
}]
}
Webhook example
EVENT
PAYMENT.CAPTURE.COMPLETED
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": "WH-58D329510W468432D",
"event_type": "PAYMENT.CAPTURE.COMPLETED",
"resource": { "id": "3C679366HH908993F", "status": "COMPLETED", "amount": { "value": "100.00", "currency_code": "USD" } }
}
Transparency note: The examples above are illustrative, based on PayPal's public documentation — not the official source and don't cover every field. Always check the official PayPal docs for your integration's exact details. If anything changed, let us know.
Start mocking PayPal now
Create a free endpoint, no credit card required, and paste the rules above.
Create free mock All providers →