PHP code example of beedelivery / laravel-bs2
1. Go to this page and download the library: Download beedelivery/laravel-bs2 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/ */
beedelivery / laravel-bs2 example snippets
namespace App\Http\Controllers;
use BeeDelivery\Bs2\Pix;
class Controller
{
protected $pix;
public function __construct(Pix $pix)
{
$this->pix = $pix;
}
public function chargeDetails()
{
$params = [
'Inicio' => '2021-07-01',
'Fim' => '2021-07-30'
];
$response = $this->pix->chargeDetails($params);
return $response;
}
public function chargeDetailsByTxId()
{
$txId = '41CCA23BA08AAE93BB45BFBE29C85C7';
$response = $this->pix->chargeDetailsByTxId($txId);
return $response;
}
}