2016-09-01 1 views
1

Ich bin ein einfaches Paypal Plus-Integration iframe verwenden, wie beschrieben:Paypal und iframe

<script type="application/javascript"> 

var ppp = PAYPAL.apps.PPP({"approvalUrl": 'myApprovalUrl',"placeholder": "ppplus","mode": "live"}); 

</script> 

Aber was ich als Antwort von Paypal iframe zu bekommen, ist: This iframe without input fields

Was ich wirklich will am ifram wie:

This iframe with all credit card input fields

Jemand, der bereits mit Paypal plus-Integration hatte mir geben können, so mir helfen?

Antwort

1

Versuchen <script type='text/javascript' src='http://www.paypalobjects.com/webstatic/ppplusdcc/ppplusdcc.min.js'></script> statt <script src="https://www.paypalobjects.com/webstatic/ppplus/ppplus.min.js" type="text/javascript"></script>

auch zu importieren, müssen Sie aditional Parameter PAYPAL.apps.PPP, wie payerFirstName und payerLastName informieren.

Sobald Sie das "korrekte" Skript importiert haben, können Sie beispielsweise über Google Chrome eine Überprüfung durchführen und die Fehler auf der Konsolenregisterkarte überprüfen.