Error Handling
The Error Object
{
error: {
code: "PAYMENT_DECLINED",
message: "Your card was declined.",
category: "PAYMENT_ERROR",
connector_code: "card_declined",
connector_message: "Your card was declined.",
request_id: "req_8f3a2b1c",
retryable: false,
suggested_action: "Ask customer to use different payment method"
}
}Field
Purpose
Error Categories
Category
Description
Example
Retryable?
Handling Errors in Code
Real Error Examples
Declined Card (Stripe)
Invalid API Key (Adyen)
Network Timeout
Retry Strategies
Logging and Debugging
Best Practices
Error Monitoring
Last updated
Was this helpful?

