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

Installation and configuration PHP SDK

Sr pago offers multiple solutions for it’s clients, in order to simplify the must common solutions, sr pago has created a SDK the will make much easier an implementation

A SDK (Software Development Kit) will make easier the development duties. In this case it will help in a faster development, nevertheless, before you start you need to configure it.


The application has to be registered in Sr Pago platforms


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






Was this article helpful to you? Yes 18 No 3