Skip to content

Releases: Spark-Public-SDKs/php-sdk

v1.0.0 — Initial release

18 Jun 16:34

Choose a tag to compare

First release of the SparkCRM DTC Checkout PHP SDK.

Highlights

  • Full funnel: init()createLead()createOrder() (auto-routes lead vs full order) → processUpsell()completeOrder()
  • PayPal redirect + capture flow, with cancel detection (wasCanceled() / abandon())
  • Decline salvage: reprocessPayment() / reprocessUpsell(), with retry-cap results (isCapped())
  • Tax quotes, refunds, subscription status, order/transaction search
  • Pluggable state stores: Session (default), PSR-16 Cache, Signed Cookie, Array, Layered
  • Tracking auto-capture + param normalization, proxy-aware client IP, card-expiry normalization
  • Typed exceptions, retry/backoff, test mode + test-card helpers
  • Optional Laravel bridge (service provider + Spark facade)

Install

  • Composer: composer require sparkcrm/spark-sdk
  • No Composer: download spark-sdk-v1.0.0.zip below, unzip, and require 'vendor/autoload.php'