Skip to content

2.0.0

Choose a tag to compare

@akozubskicr akozubskicr released this 15 Apr 20:56
· 1 commit to master since this release

Added

  • Initial release of a redesigned PSR-compliant PHP client for the Comfino payment gateway REST API.
  • PSR-7 / PSR-17 / PSR-18 compliant HTTP layer with no framework dependencies.
  • Client class with full Comfino REST API coverage: createOrder(), validateOrder(), getOrder(), cancelOrder(), getFinancialProducts(), getFinancialProductDetails(), getProductTypes(), getWidgetKey(), getWidgetTypes(), isShopAccountActive().
  • Fire-and-forget notification methods: sendLoggedError(), notifyPluginRemoval(), notifyAbandonedCart().
  • RetryExecutor with ExponentialBackoffRetryPolicy for automatic retry with exponential backoff on transient network errors.
  • TimeoutAwareClientInterface support for per-attempt timeout escalation during retries.
  • Typed exception hierarchy mapped to HTTP status codes: RequestValidationError (400), AuthorizationError (401), Forbidden (403), NotFound (404), MethodNotAllowed (405), Conflict (409), ServiceUnavailable (5xx), ConnectionTimeout (retry exhausted).
  • SHA3-256 request signing for order creation (Comfino-Cart-Hash, Comfino-Customer-Hash, Comfino-Order-Signature headers).
  • WebhookSignatureVerifier for timing-safe CR-Signature verification of incoming webhook requests.
  • PaywallAuthKeyGenerator for time-limited HMAC-SHA3-256 auth token generation for the Paywall V3 iframe.
  • Forward-compatible enum handling via LoanType::fromApiValue() and Unknown* flyweights for unrecognized API values.
  • Shop domain integration interfaces: OrderInterface, CartInterface, CustomerInterface, LoanParametersInterface, SellerInterface.
  • Docker development environment (PHP 8.1-cli-alpine) and bin/ wrapper scripts.
  • PHPUnit 10.5 test suite with unit and integration test suites.
  • GitHub Actions CI matrix across PHP 8.1–8.4 with Codecov coverage upload.