Skip to content

Instantly share code, notes, and snippets.

@gusLopezC
Created August 13, 2020 03:06
Show Gist options
  • Save gusLopezC/0b6db8bda59e64c155aa064fd58cc6b9 to your computer and use it in GitHub Desktop.
Save gusLopezC/0b6db8bda59e64c155aa064fd58cc6b9 to your computer and use it in GitHub Desktop.
var sucess_callbak = function(response) {
var token_id = response.data.id;
console.log("Su token es " + token_id);
$('#token_id').val(token_id);
// $('#payment-form').submit();
var data = $("#payment-form").serializeArray();
console.log(data);
$.ajax({
type: 'POST', //aqui puede ser igual get
url: 'procesos/crearPago.php', //aqui va tu direccion donde esta tu funcion php
data: data, //aqui tus datos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment