Paypal Plus integration: incorrect iframe

Asked

Viewed 299 times

0

I’m using a Paypal Plus integration using iframe, as below:

<script type="application/javascript">   
  var ppp = PAYPAL.apps.PPP({"approvalUrl": 'myApprovalUrl',"placeholder": "ppplus","mode": "live"});
</script>

But what I get as a response from Paypal, is an iframe without the inputs: http://i.stack.Imgur.com/Oqk7u.png

What I really need is an iframe with the payment fields, as the following image shows: http://i.stack.Imgur.com/Zc8le.png

Can someone who has already done this kind of integration help me with any suggestions? Thank you.

1 answer

1


Try to import <script type='text/javascript' src='http://www.paypalobjects.com/webstatic/ppplusdcc/ppplusdcc.min.js'></script> instead of <script src="https://www.paypalobjects.com/webstatic/ppplus/ppplus.min.js" type="text/javascript"></script>

In addition, you will need to provide some additional parameters in PAYPAL.apps.PPP, such as 'payerFirstName' and 'payerLastName'.

Once you have imported the correct script, you can inspect the code in Google Chrome, for example, and see possible errors in the 'Console' tab'.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.