I would like to use Cielo's API to make a purchase with a credit card.
For example, I signed up for a product on my Cielo account, I have the product ID, and would like to use Cielo's API to make a purchase with a credit card.
I have the following code:
<?php
$numero = $_POST['numeroCartao'];
$mesAno = $_POST['mesAno'];
$cvv = $_POST['cvv'];
$nome = $_POST['nome'];
And I would like to use Cielo's API to automatically pay for the product, and to return me if the product was successfully paid, or if there was an error, to return the error message.
I searched the internet for sample codes, but found none!