PHP code example of miguelalcaino / iugu
1. Go to this page and download the library: Download miguelalcaino/iugu 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/ */
miguelalcaino / iugu example snippets
Iugu::setApiKey("c73d49f9-6490-46ee-ba36-dcf69f6334fd"); // Ache sua chave API no Painel
Iugu_Charge::create(
[
"token"=> "TOKEN QUE VEIO DO IUGU.JS OU CRIADO VIA BIBLIOTECA",
"email"=>"[email protected]",
"items" => [
[
"description"=>"Item Teste",
"quantity"=>"1",
"price_cents"=>"1000"
]
]
]
);
git clone https://github.com/iugu/iugu-php