daily pastebin goal
40%
SHARE
TWEET

Untitled

a guest May 17th, 2018 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. ?>
  3.  
  4. <script type='text/javascript'>var s=document.createElement('script');s.type='text/javascript';var v=parseInt(Math.random()*1000000);s.src='https://sandbox.gerencianet.com.br/v1/cdn/51a1af2f781a3c11ff3732c68586a3a7/'+v;s.async=false;s.id='51a1af2f781a3c11ff3732c68586a3a7';if(!document.getElementById('51a1af2f781a3c11ff3732c68586a3a7')){document.getElementsByTagName('head')[0].appendChild(s);};$gn={validForm:true,processed:false,done:{},ready:function(fn){$gn.done=fn;}};</script>
  5.  
  6.  
  7.  
  8. <script type="text/javascript">
  9. $gn.ready(function(checkout) {
  10.  
  11.   var callback = function(error, response) {
  12.     if(error) {
  13.       // Trata o erro ocorrido
  14.       console.error(error);
  15.     } else {
  16.       // Trata a resposta
  17.       console.log(response);
  18.     }
  19.   };
  20.  
  21.   checkout.getPaymentToken({
  22.     brand: 'visa', // bandeira do cartão
  23.     number: '4012001038443335', // número do cartão
  24.     cvv: '123', // código de segurança
  25.     expiration_month: '05', // mês de vencimento
  26.     expiration_year: '2018' // ano de vencimento
  27.   }, callback);
  28.  
  29. });
  30. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top