PHP code example of eng_assys / iugu

1. Go to this page and download the library: Download eng_assys/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/ */

    

eng_assys / iugu example snippets




\Iugu\Iugu::setApiKey('c73d49f9-6490-46ee-ba36-dcf69f6334fd'); // Ache sua chave API no Painel

\Iugu\Customer::fetch('8DCD9BE5DC8D4FFD9CE8FA6C0FCAC631');


use Iugu\Iugu;

use Iugu\Charge;

Iugu::setApiKey("c73d49f9-6490-46ee-ba36-dcf69f6334fd"); // Ache sua chave API no Painel

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/eng-assys/iugu-php