Skip to main content
Code: api.connection_failed
HTTP: 502 Bad Gateway

What happened

The Morapay API could not complete the request due to rate limits, connectivity, or infrastructure.

Safe message

We could not reach the payment service. Please try again.
Use err.safeMessage or err.displayMessage in customer UI, not err.message.

Why this happened

The client received a non-JSON or empty response from the API.

How to fix it

Verify baseUrl, TLS, and that the Morapay API is reachable from your server.

UI hint

Programmatic handling