Last active
August 29, 2015 14:18
-
-
Save lucasrenan/67388e980ab07e533638 to your computer and use it in GitHub Desktop.
This file contains 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
PagSeguroDirectPayment.setSessionId('session_id from backend'); | |
PagSeguroDirectPayment.getInstallments({ | |
amount: 50.00, | |
brand: "visa", | |
success: function(response) { | |
console.log("installments:"); | |
console.log(response); | |
}, | |
error: function(response) { | |
console.log(response); | |
}, | |
complete: function(response) { | |
//tratamento comum para todas chamadas | |
} | |
}); | |
// response: | |
// SESSÃO inválida: 5553fcede5c040c4a0affd3999378b6b.: "10005" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment