v0.2.0 (unreleased)
Breaking changes
- Requires Elixir ~> 1.17.
- Removed the
:testvalue for the:environmentconfig. Point the library at a local server with the new:vendors_base_url/:checkout_base_urlconfig keys instead. :environmentnow defaults to:productionwhen unset.- Requests fail fast with a
{:error, %Paddle.Error{code: :missing_configuration}}when:vendor_id/:vendor_auth_codeare not configured.
Changes
- HTTP requests are now made with Req (replacing
Peppermint, which pinned
castore ~> 0.1). - All API functions accept a trailing
optskeyword list for per-call configuration overrides::vendor_id,:vendor_auth_code,:environment,:vendors_base_url,:checkout_base_url, and:req_options(merged into the underlyingReqrequest). - CI runs on Elixir 1.17/1.18 with OTP 26/27; dependabot enabled.
v0.1.1
- Fix
__struct__/0deprecation warning. - Properly convert "array list" fields to arrays in
Paddle.PayLink.