Created
August 9, 2020 18:15
-
-
Save gusLopezC/141d63d66ee5e3dfbab7c708b02cc2f6 to your computer and use it in GitHub Desktop.
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
var settings = { | |
"url": "https://sandbox-api.openpay.mx/v1/mzdtln0bmtms6o3kck8f/tokens", | |
"method": "POST", | |
"timeout": 0, | |
"headers": { | |
"Content-type": "application/json", | |
"Authorization": "Basic c2tfZTU2OGM0MmE2YzM4NGI3YWIwMmNkNDdkMmU0MDdjYWI6" | |
}, | |
"data": JSON.stringify({"card_number":"4111111111111111","holder_name":"Juan Perez Ramirez","expiration_year":"20","expiration_month":"12","cvv2":"110","address":{"city":"Querétaro","country_code":"MX","postal_code":"76900","line1":"Av 5 de Febrero","line2":"Roble 207","line3":"col carrillo","state":"Queretaro"}}), | |
}; | |
$.ajax(settings).done(function (response) { | |
console.log(response); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment