Paypal Plus integration: incorrect iframe

0

I'm using an integration with Paypal Plus using the iframe, as follows:

<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: link

What I really need is an iframe with the payment fields, as the following image shows: link

Has anyone who has ever done this kind of integration can help me with any suggestions? Thank you.

    
asked by anonymous 02.09.2016 / 15:47

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 enter 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 the possible errors in the 'Console' tab.

    
02.09.2016 / 18:58