PHP code example of aurepay / sdk

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

    

aurepay / sdk example snippets




use AurePay\AurePay;

$aure = new AurePay([
    'apiKey' => getenv('AUREPAY_API_KEY'),
    'apiSecret' => getenv('AUREPAY_API_SECRET'),
]);

$aure->deposits->create([
    'amount' => 10000,
    'method' => 'pix',
]);

$aure->webhooks->list();
$aure->company->balance();