Advertisement
Guest User

Untitled

a guest
Oct 13th, 2015
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  1. require_once('lib/iugu-php/lib/Iugu.php');
  2.  
  3. Iugu::setApiKey('c9d2d080ddedcc4d14c50bf0f12ae97d');
  4.  
  5. $token = $_POST['token'];
  6.  
  7. $retorno = Iugu_Charge::create(
  8.     Array(
  9.         "token"=> $token,
  10.         "email"=>"amadeus.cmd@hotmail.com",
  11.         "items" =>
  12.             Array(
  13.                 Array(
  14.                     "description"=>"Item Teste",
  15.                     "quantity"=>"1",
  16.                     "price_cents"=>"1000"
  17.                 )
  18.             )
  19.     )
  20. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement