PHP code example of warquia / pix

1. Go to this page and download the library: Download warquia/pix 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/ */

    

warquia / pix example snippets


composer 

$config = [
    'environment' => Constants::ENVIRONMENT_TEST,
    'psp_name' => Constants::PSP_NAME_MATERA,
    'client_id' => 'hml',
    'client_secret' => 'fictício-ezz3-1818-ip7c-fictício',
    'secret_key' => 'fictício-9X47-fictício-BE33-fictício',
    'certificate' => __DIR__ . '/hml.pem',
    'certificateKey' => __DIR__ . '/hml.key'
];

$psp = new \Warquia\Pix\Psp($config);