Package Data | |
---|---|
Maintainer Username: | adhenrique |
Package Create Date: | 2017-02-23 |
Package Last Update: | 2017-02-24 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-14 15:00:21 |
Package Statistics | |
---|---|
Total Downloads: | 15 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 4 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
Faça o download da biblioteca:
git clone https://github.com/iugu/iugu-php
Inclua a biblioteca em seu arquivo PHP:
require_once(".../iugu-php/lib/Iugu.php");
$ composer require iugu/iugu
Please provide a version constraint for the iugu/iugu requirement: 1.0.6
O autoload do composer irá cuidar do resto.
Iugu::setApiKey("c73d49f9-6490-46ee-ba36-dcf69f6334fd"); // Ache sua chave API no Painel
Iugu_Charge::create(
Array(
"token"=> "TOKEN QUE VEIO DO IUGU.JS OU CRIADO VIA BIBLIOTECA",
"email"=>"your@email.test",
"items" =>
Array(
Array(
"description"=>"Item Teste",
"quantity"=>"1",
"price_cents"=>"1000"
)
)
)
);
Acesse iugu.com/documentacao para referência
Instale as dependências. Iugu-PHP utiliza SimpleTest.
composer update --dev
Execute a comitiva de testes:
php ./test/Iugu.php