PHP code example of brenno-duarte / pagarme-creditcard

1. Go to this page and download the library: Download brenno-duarte/pagarme-creditcard library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

brenno-duarte / pagarme-creditcard example snippets




use PagarMeAPICreditCard\PagarMeAPICreditCard;

$pagarme = new PagarMeAPICreditCard("API_KEY");

$pagarme->createCard("5528 7219 6502 9146", "YOUR_NAME", "07", "2022" ,"849");

var_dump($pagarme->getResponse());

$pagarme->transactions(1000, "CARD_HASH");

var_dump($pagarme->getResponse());