1. Home
  2. Library
  3. SDK PHP
  4. Installation and configuration PHP SDK

Installation and configuration PHP SDK

Sr Pago has created a SDK to make implementation easy.

A SDK (Software Development Kit) will make easier the development duties. In this case it will help in a faster development.

Pre-requisites

The application has to be registered in Sr Pago platforms

Process

1. Install the SDK in your project, usually the best place is under <Project root>/vendor/srPago

3. Inside the SDK rood folder you’ll find a file named SrPago.php inside that file you’ll find the following lines that you’ll need to modify

\SrPago\SrPago::$apiKey = "/* Colocar App Key  */";
\SrPago\SrPago::$apiSecret = "/* Colocar App Secret */";
\SrPago\SrPago::$liveMode = false;

App Key and App Secret are values that you get while you where registering the application; live mode will be defined as false if you are developing or in staging and as true while you’re in production environment.

Additional Resources

You can download our demo DemoSrPago.

You can download our SDK:

V.1.2

V1.1

V.1

Was this article helpful to you? Yes 19 No 4