Skip to main content
Available in🇮🇳 India
This page lists the error responses you can encounter while integrating Apple Pay on Custom Checkout, what triggers each one and how to handle them.

canMakePayment Reasons

When canMakePayment() returns { available: false }, the reason field indicates why:

Error Response Structure

Response

Payment Error Responses

Returned from createPayment() or the onFailure callback: For backend payment failures (for example, card declined, insufficient funds, invalid order), all error fields (code, reason, description, source, step, metadata) are propagated directly from the Razorpay backend. Refer to the Razorpay Payment Error Codes documentation for the full list of possible values.

Client Error Responses

Thrown as exceptions during initialization and setup — before any payment flow. Merchants should wrap these calls in try/catch:

Handling Guide