Test a payment provider
Sends a signed describe request to a payment source's endpoint and returns the operations it implements.
Changes nothing. environment=test sends a test request to the endpoint test requests go to: the testEndpoint, or the endpoint of a source without one. By default a production request tests the endpoint; production requests never go to the testEndpoint. Only a payment source can be tested. The message says what to fix.
Guide: Payment providers
Errors
| Status | type | code | When |
|---|---|---|---|
| 400 | invalid_request | payment_source_required | For a store. |
| 409 | conflict | payment_source_endpoint_not_configured | For a source without an endpoint for the environment. |
| 409 | conflict | payment_source_endpoint_rejected | When the endpoint refuses the request. |
| 503 | unavailable | payment_source_endpoint_unavailable | When it does not answer or answers outside the protocol. |
| 503 | unavailable | payment_source_endpoint_invalid_response | When it does not answer or answers outside the protocol. |
It can also fail with the errors every operation shares, such as unauthenticated; see Errors.
More in Payment providers
Something wrong or missing on this page? Tell us by email or on Discord.