Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down