PHP code example of devkussema / acapapay-laravel

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

    

devkussema / acapapay-laravel example snippets


use AcapaPay\Laravel\Facades\AcapaPay;

$url = AcapaPay::checkoutSession(
    auth()->id(),
    'PRO_MONTHLY',
    [],
    url('/pagamento/sucesso'),
    url('/pagamento/cancelado')
);

return redirect($url);
bash
php artisan acapapay:test-connection