elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Guía actualizada para evitar que un ransomware ataque tu empresa


  Mostrar Temas
Páginas: [1]
1  Programación / Desarrollo Web / Ayuda con botón visa check-out en: 2 Noviembre 2018, 22:40 pm
Alguien me puede ayudar a resolver lo siguiente.
En la página de los desarrolladores de visa lo explican así pero al sustituir y poner mis credenciales y después de insertar en la página web y publicar no me hace nada solo aparece el logo visa

Código
  1. <html>
  2. <head>
  3. <script type="text/javascript">
  4.  function onVisaCheckoutReady(){
  5.  V.init( {
  6.  apikey: "...",
  7.  paymentRequest:{
  8.    currencyCode: "USD",
  9.    subtotal: "11.00"
  10.  }
  11.  });
  12. V.on("payment.success", function(payment)
  13.  {alert(JSON.stringify(payment)); });
  14. V.on("payment.cancel", function(payment)
  15.  {alert(JSON.stringify(payment)); });
  16. V.on("payment.error", function(payment, error)
  17.  {alert(JSON.stringify(error)); });
  18. }
  19. </script>
  20. </head>
  21.  
  22. <body>
  23. <img alt="Visa Checkout" class="v-button" role="button"
  24. src="https://sandbox.secure.checkout.visa.com/wallet-services-web/xo/button.png"/>
  25. <script type="text/javascript"
  26. src="https://sandbox-assets.secure.checkout.visa.com/
  27. checkout-widget/resources/js/integration/v1/sdk.js">
  28. </script>
  29. </body>
  30. </html>


Mod: Obligatorio el uso de etiquetas GeSHi.
Páginas: [1]
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines