0
How do I make this require 'vendor/autoload.php', it does not come in the documentation.
<?php
require 'vendor/autoload.php';
use Moip\Moip;
use Moip\MoipBasicAuth;
$endpoint = 'test.moip.com.br';
$token = '01010101010101010101010101010101';
$key = 'ABABABABABABABABABABABABABABABABABABABAB';
$moip = new Moip(new MoipBasicAuth($token, $key), $endpoint);
$customer = $moip->customers()->setOwnId('sandbox_v2_1401147277')
->setFullname('Jose Silva')
->setEmail('[email protected]')
->setBirthDate('1988-12-30')
->setTaxDocument('33333333333')
->setPhone(11, 66778899)
->addAddress('BILLING',
'Avenida Faria Lima', 2927,
'Itaim', 'Sao Paulo', 'SP',
'01234000', 8);
print_r($order = $moip->orders()->setOwnId('sandbox_v2_1401147277')
->addItem('Pedido de testes Sandbox - 1401147277', 1, 'Mais info...', 10000)
->setShippingAmount(100)
->setCustomer($customer)
->create());
Thank you.