PHPackages                             points-app/points-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. points-app/points-sdk

ActiveLibrary[API Development](/categories/api)

points-app/points-sdk
=====================

Official PHP SDK for the Points loyalty platform (papp.sa)

1.0.2(1mo ago)12MITPHPPHP ^8.2CI failing

Since Apr 20Pushed 1mo agoCompare

[ Source](https://github.com/ibtikarat/Points-sdk)[ Packagist](https://packagist.org/packages/points-app/points-sdk)[ Docs](https://papp.sa)[ RSS](/packages/points-app-points-sdk/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (8)Versions (4)Used By (0)

Points PHP SDK
==============

[](#points-php-sdk)

Official PHP SDK for the Points loyalty platform at [papp.sa](https://papp.sa).

Installation
------------

[](#installation)

```
composer require points-app/points-sdk
```

Environment Variables
---------------------

[](#environment-variables)

Add the following to your `.env` file:

```
# Required – your merchant private API key
POINTS_PRIVATE_KEY=points_private_key_xxx

# Optional – only needed for checkout (createCheckout) endpoints
POINTS_PUBLIC_KEY=points_public_key_xxx

# API base URL – use production or sandbox (see Environments below)
POINTS_BASE_URL=https://business.papp.sa

# Optional tuning
POINTS_TIMEOUT=30
POINTS_RETRIES=3
```

Environments
------------

[](#environments)

EnvironmentBase URLProduction`https://business.papp.sa`Sandbox / Testing`https://sandbox.papp.sa`Quick Start
-----------

[](#quick-start)

```
