Created
October 23, 2019 20:47
-
-
Save pauloharaujos/3d63529ec2978abbdff7cec664e34a9b to your computer and use it in GitHub Desktop.
M1 Ajax Request - How to send parameters by $_POST
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
new Ajax.Request("<?php echo $this->getUrl('paypal/express/placeOrder') ?>",{ | |
method: 'POST', | |
async: false, | |
parameters: "telephone="+document.getElementById('billing:telephone').value, | |
onSuccess: function (response) { | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment