Skip to content

Instantly share code, notes, and snippets.

@pauloharaujos
Created October 23, 2019 20:47
Show Gist options
  • Save pauloharaujos/3d63529ec2978abbdff7cec664e34a9b to your computer and use it in GitHub Desktop.
Save pauloharaujos/3d63529ec2978abbdff7cec664e34a9b to your computer and use it in GitHub Desktop.
M1 Ajax Request - How to send parameters by $_POST
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