PHP code example of pedroladeira / eupago-laravel
1. Go to this page and download the library: Download pedroladeira/eupago-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/ */
pedroladeira / eupago-laravel example snippets
$eupago = Eupago::getInstance();
$eupago->setApiKey('demo-5b72-04a6-7847-5f6');
$eupago->inDevelopment();
//eupago->setTransactionId('my-order-identifier');
// generate reference passing value
$result = $eupago->generateReferenceMB(123.43, $dateLimit = null);
$result = $eupago->referenceInformation('000000000');