diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ea2a15..209c56d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,8 +13,8 @@ First release. - Configuration with an explicit environment (no default), credentials held outside the objects that use them (the API key prints its last 4 characters), per-profile timeouts, and an optional second credential set for checkout. - A pure request signer (flattening, value text, `Signed-Fields`, query string or JSON body) with a pluggable digest signer and HS256. - A replaceable `Transport` interface and a PSR-18 default using `php-http/discovery` for the factories and a Guzzle client per timeout profile, or your own client (a per-profile closure, or a ready client with `clientManagesTimeouts: true`). Payments and writes use a fresh connection and are never retried. `NOT_SENT` / `UNKNOWN_OUTCOME` classification from cURL request-byte counters, error numbers and connect-phase messages. -- A client with typed request and result objects for the 16 v1 operations: checkout, utility payments, wallet cash-in and vendor balance. Amounts accept an int, a digit string or an integral float. -- The five typed statuses (`SUCCESS`, `PENDING`, `AMBIGUOUS`, `FAILED`, `NOT_FOUND`) with the raw HTTP status and body. +- A client with typed request and result objects for the v1 operations: checkout, utility payments, wallet cash-in and vendor balance. Amounts accept an int, a digit string or an integral float. +- The typed statuses (`SUCCESS`, `PENDING`, `AMBIGUOUS`, `FAILED`, `NOT_FOUND`) with the raw HTTP status and body. - A webhook verifier following selcom-spec v0.2.1 (`order_id` and `transid` signed, no `&` in signed names or values, bounded number handling, replay entries kept until max(now, signed time) + window), a replay store interface, `ReplayStoreException` for store failures (answer 5xx), and payload parsing with strict amount parsing. - A redaction helper for logs. - Secret parameters marked `#[\SensitiveParameter]`; masked output for `var_dump`, `print_r`, `var_export` and array casts. diff --git a/README.md b/README.md index 537d160..850eae7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # selcom-php +[![CI](https://github.com/selcom-developers/selcom-php/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/selcom-developers/selcom-php/actions/workflows/ci.yml) Framework-agnostic PHP client for the Selcom API gateway: request signing, checkout, payouts and webhooks.