I have an issue with PayPal payment integration. I want the payment to be integrated and I followed the instructions from: https://developer.paypal.com/docs/regional/mx/payment-selection-page/
My problem is that when I click on the payment button, I encounter a Forbidden error.
I don't see any errors in the console either. Please guide me on this matter.
My code:
<div id="ppplus">
</div>
<button type="submit" id="miniBrowserInitiateCheckout"
class="btn btn-lg btn-primary btn-block"
onclick="initiateCheckout(); return false;">
Checkout
</button>
<script src="https://www.paypalobjects.com/webstatic/ppplusdcc/ppplusdcc.min.js" type="text/javascript"></script>
<script language="JavaScript">
function initiateCheckout() {
var ppp = PAYPAL.apps.PPP({
"approvalUrl": "",
"placeholder": "ppplus",
"payerEmail": "",
"payerFirstName": "",
"payerLastName": "",
"payerTaxId": "",
"miniBrowser": true,
"mode": "sandbox",
});
console.log(ppp);
}
</script>
Via Active questions tagged javascript - Stack Overflow https://ift.tt/q5h8W2C
Comments
Post a Comment