inicial/itaucripto-php
最新稳定版本:v1.0.1
Composer 安装命令:
composer require inicial/itaucripto-php
包简介
Itau Shopline Integration (PHP)
README 文档
README
Description
This class was created based on the Java version of Itaucripto.
Composer
$ composer require inicial/itaucripto-php
Usage
<?php require_once(dirname(__FILE__) . '/init.php'); $itaucripto = new \Itaucripto\Itaucripto(); $itaucripto->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.
Report any bug or suggest changes using git issues.
统计信息
- 总下载量: 22.62k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-03-12