Releases: Spark-Public-SDKs/php-sdk
Releases · Spark-Public-SDKs/php-sdk
v1.0.0 — Initial release
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 +
Sparkfacade)
Install
- Composer:
composer require sparkcrm/spark-sdk - No Composer: download
spark-sdk-v1.0.0.zipbelow, unzip, andrequire 'vendor/autoload.php'