Cielo CheckOut Api 3.0 Integration
Code Example:
...
//Change xxxxxxx... to Cielo MerchantId
require_once('autoload.php');
$checkout = new CieloCheckOut();
$cart = $checkout->Cart
->setDiscount('Percent','05')
->createItem()
->setName('Product Test #1')
->setDescription('Description goes here! (Optionsl)');
$checkout->Shipping->setType('WithoutShipping');
$request = new Request('xxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx'); //put yout MerchantId
$response = $request->send($checkout);
$checkOutUrl = $response->settings->checkoutUrl;
header("Location:{$checkOutUrl}");