This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const pagarme = require('pagarme') | |
const api_key = 'SUA_CHAVE_DE_API'; | |
bank_account_1 = { | |
bank_code: '987', | |
agencia: '9876', | |
agencia_dv: '9', | |
conta: '98765', | |
conta_dv: '9', | |
legal_name: 'Primeira conta bancaria', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta charset='utf-8'/> | |
<title> Generate Card Hash </title> | |
<script src='https://assets.pagar.me/js/pagarme.js'></script> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
</head> | |
<body> | |
<form id="creditCard_form" class="creditCard_form form-group"> | |
Número do cartão: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Teste de Card Hash</title> | |
</head> | |
<body> | |
</body> | |
<script src="https://assets.pagar.me/pagarme-js/3.0/pagarme.min.js"></script> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'vendor/autoload.php'; | |
$pagarMe = new \PagarMe\Sdk\PagarMe('SUA_API_KEY'); | |
$amount = 1000; | |
$installments = 1; | |
$capture = true; | |
$postbackUrl = 'http://requestb.in/pkt7pgpk'; | |
$metadata = ['idProduto' => 13933139]; | |
$extraAttributes = [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require("pagarme-php/Pagarme.php"); | |
PagarMe::setApiKey("SUA_CHAVE_DE_API"); | |
$transaction = new PagarMe_Transaction(array( | |
"amount"=> 21000, | |
"card_number"=> "4111111111111111", | |
"card_cvv"=> "123", | |
"card_expiration_month"=> "09", |
NewerOlder