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.
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.
You can download our demo DemoSrPago.
You can download our SDK: