Low-level HTTP client for all Worldpay REST APIs.
Wraps Req with:
- Basic Auth injection
WP-Api-Versionheader managementWP-CorrelationIdper-request tracing header- JSON encode/decode
- Telemetry spans on every call
- Auto-generated idempotency keys on mutations
- Optional circuit breaker via
:fuse - XML client for WPG (
wpg_post/2)
Summary
Functions
DELETE request.
GET request against the Access API.
PATCH request.
POST request against the Access API.
PUT request.
POST XML to the WPG endpoint.
Types
@type headers() :: [header()]
@type result() :: {:ok, map() | nil} | {:error, Worldpay.Error.t()}
@type xml_result() :: {:ok, String.t()} | {:error, Worldpay.Error.t()}
Functions
@spec delete(String.t(), keyword(), Worldpay.Config.t()) :: result()
DELETE request.
@spec get(String.t(), keyword(), Worldpay.Config.t()) :: result()
GET request against the Access API.
@spec patch(String.t(), map(), keyword(), Worldpay.Config.t()) :: result()
PATCH request.
@spec post(String.t(), map(), keyword(), Worldpay.Config.t()) :: result()
POST request against the Access API.
@spec put(String.t(), map(), keyword(), Worldpay.Config.t()) :: result()
PUT request.
@spec wpg_post(String.t(), Worldpay.Config.t()) :: xml_result()
POST XML to the WPG endpoint.