Apple Pay—Troubleshooting & Error Codes
This section provides a comprehensive guide to common issues and error codes encountered during Apple Pay integration (Server-to-Server). For unlisted issues, please contact EdfaPay Integration Support.
Common Troubleshooting Scenarios
The table below outlines frequent integration challenges, their potential causes, and actionable solutions.
Issue | Possible Cause | Solution |
|---|---|---|
Apple Pay button not visible |
|
|
Payment not completed error |
|
|
Hash Mismatch / Invalid Hash |
|
|
400 Bad Request API status |
|
|
500 Internal Server Error API status |
|
|
Apple Pay Error Codes
This table lists common Apple Pay error codes, their meanings, and recommended actions.
| Error Code | Meaning | Suggested Action |
|---|---|---|
ERR_INVALID_HASH | Generated hash does not match server calculation | Recheck hash generation logic and parameter order. |
ERR_INVALID_IDENTIFIER | Apple Merchant Identifier is invalid or unregistered | Use the correct Apple Merchant ID configured in your Apple Developer account. |
ERR_PAYMENT_TOKEN_INVALID | Apple Pay token is malformed or expired | Ensure the token is freshly captured from the frontend and passed as a JSON string. |
ERR_UNSUPPORTED_CURRENCY | Currency is not supported for Apple Pay | Use a supported currency (e.g., SAR). |
ERR_TRANSACTION_DECLINED | Issuer declined the transaction | Suggest the customer try another card or payment method. |
ERR_PARAMETER_MISSING | A required parameter is missing from the request | Review the request body and include all necessary fields. |
ERR_APPLE_PAY_NOT_ENABLED | Apple Pay is not activated for this merchant | Contact EdfaPay to enable Apple Pay on your account. |
Important Notes:
- Always log the error code and message for support reference.
- A "pending" status does not guarantee success; confirm via the Status API.
- Token-related errors (e.g., 200.300.xxx) often indicate an expired Apple Pay session.
Updated 15 days ago