library itaucripto-php
Itau Shopline Integration (PHP)
inicial/itaucripto-php
Itau Shopline Integration (PHP)
- Friday, March 16, 2018
- by inicial
- Repository
- 1 Watchers
- 1 Stars
- 32 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 3 Versions
- 78 % Grown
Itaucripto (PHP)
, (*1)
Description
This class was created based on the Java version of Itaucripto., (*2)
Composer
$ composer require inicial/itaucripto-php
Usage
setCompanyCode('J0098765430001220000002598');
$itaucripto->setEncryptionKey('12ASDFG456KWE078');
$itaucripto->setOrderNumber(substr(time(),-8));
$itaucripto->setAmount('1,57');
$itaucripto->setDraweeName('Fabiano Couto');
$itaucripto->setDraweeDocTypeCode('01');
$itaucripto->setDraweeDocNumber('61022645099');
$itaucripto->setDraweeAddress('Av Presidente Vargas');
$itaucripto->setDraweeAddressDistrict('Centro');
$itaucripto->setDraweeAddressCity('Rio de Janeiro');
$itaucripto->setDraweeAddressState('RJ');
$itaucripto->setDraweeAddressZipCode('20070006');
// $itaucripto->setCallbackUrl('http://www.domain.com/callback');
$itaucripto->setBankSlipDueDate(date('dmY', strtotime('+7 day')));
$itaucripto->setBankSlipNoteLine1('Sr. Caixa,');
$itaucripto->setBankSlipNoteLine2('NĂŁo receber apĂłs o vencimento.');
$itaucripto->setBankSlipNoteLine3('Obrigado.');
$itaucripto->setNote('3'); // Needed to display the three lines on the bank slip
$data = $itaucripto->generateData();
?>
Note
You can find more info about usage on class source code., (*3)
Report any bug or suggest changes using git issues., (*4)