PHP code example of advans / php-api-boveda-csd
1. Go to this page and download the library: Download advans/php-api-boveda-csd 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/ */
advans / php-api-boveda-csd example snippets
`
$config = new \Advans\Api\BovedaCSD\Config([
'base_url' => '*************************',
'key' => '**********************'
]);
$service_boveda = new \Advans\Api\BovedaCSD\BovedaCSD($config);
$co = '||4.0|CPA-N1|4|2022-10-30T23:59:59|30001000000400002335|0|XXX|0|P|01|77527|CACX7605101P8|OPERADORA PUEBLO BONITO SUNSET BEH|610|XEXX010101000|BOOKIT.COM|77527|616|CP01|84111506|1|ACT|Pago|0|0|01|2.0|75722.39|75722.63|2022-10-23T23:59:59|03|MXN|1|75722.63|FFFFFFFF-7B25-45FC-9725-F0154D6E3D54|FAG-N1|826|USD|0.049523|1|3750.00|3750.00|0|02|3750.00|002|Exento|75722.39|002|Exento||'
$serial = '30001000000400002335';
$response = $service_boveda->sellar($co, $serial);