1. Go to this page and download the library: Download saulmoralespa/pstpagofacil library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
saulmoralespa / pstpagofacil example snippets
// ... please, add composer autoloader first
PagoFacil;
// create token in panel menu "API Tokens"
$token_user = 'YOUR_TOKEN_USER';
// instantiate the class
$pagoFacil = new PSTPagoFacil($token_user);
$pagoFacil->sandbox_mode(true); // sandbox true o production false