I am working with paypal plus. I am not sure that I need this checkout.js.
I use the code in my other post to generate de approval URL and I complete on this function of paypal plus:
<script language="JavaScript">
var arr = []
function initiateCheckout() {
var ppp = PAYPAL.apps.PPP({
"mode": "sandbox",
"approvalUrl": "https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-6B326579Y1699870G",
"placeholder": "ppplus",
"payerEmail": "email",
"payerFirstName": "comprador",
"payerLastName": "teste",
"payerPhone": "12988108463",
"payerTaxId": "30949017787",
"miniBrowser": false,
"language":"pt_BR",
"country":"BR",
"merchantInstallmentSelection": "1" ,
"merchantInstallmentSelectionOptional": true,
'disableContinue': "continueButton",
'enableContinue': "continueButton"
})
arr.push(ppp)
}
function subCheckout() {
arr[0].doContinue()
}
</script>
<button type="submit" id="miniBrowserInitiateCheckout"
class="btn btn-lg btn-primary btn-block"
onclick=" initiateCheckout(); return false;">
Checkout
</button>
<button
type="submit"
id="continueButton"
onclick="subCheckout(); return false;"> Submit
</button>
This error is about payer_id, isn't it?
... View more