Skip to content

kiaonline/Cielo-CheckOut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cielo-CheckOut

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}");

About

Cielo CheckOut Api 3.0 Integration

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages