Skip to main content
The Points PHP SDK is the fastest way to integrate Points into a PHP backend. It calls the same API documented in the API Reference, but with less boilerplate, typed clients, and built-in webhook verification helpers.
  • Repository: points/php-sdk
  • Package: papp/points-sdk
  • Runtime: PHP 8.2+

When to use the SDK

Use the SDK when you want to:
  • initialize a typed client once and reuse it across your backend
  • reduce manual request signing and header handling
  • speed up integration in Laravel or PHP projects
  • use built-in helpers for webhook parsing and order actions
Use direct REST calls if your stack does not use PHP, or if you prefer to work directly with HTTP.

What the SDK covers

  • checkout session creation
  • earning and redemption order flows
  • order lifecycle actions (authorize, capture, complete, cancel)
  • shipping status updates
  • refunds
  • webhook management and verification helpers

Authentication model

  • the private key is used for authenticated backend operations (sent as the x-api-key header)
  • the public key is used for checkout endpoint calls
  • webhook verification uses your webhook secret
The SDK is for backend usage only. Never expose your private key in frontend code.

Install

Quick start

Create a checkout

Continue the order lifecycle

Configuration

string
required
Required. Sent as the x-api-key header for authenticated backend requests.
string
Optional. Used for checkout-related endpoints when needed.
string
required
Set this explicitly for the environment you want to call.
integer
default:"30"
Request timeout in seconds.
integer
default:"3"
Number of retry attempts.

Webhooks

Use the built-in webhook handler to parse incoming webhook payloads with your webhook secret:

Best fit

Use the PHP SDK when you are building with:
  • plain PHP services
  • Laravel applications
  • existing PHP commerce backends that need checkout and order actions

See also