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.Documentation Index
Fetch the complete documentation index at: https://docs.papp.sa/llms.txt
Use this file to discover all available pages before exploring further.
- 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
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-keyheader) - 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
Required. Sent as the
x-api-key header for authenticated backend requests.Optional. Used for checkout-related endpoints when needed.
Set this explicitly for the environment you want to call.
Request timeout in seconds.
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

