"Lazy loading" PayPal PLUS PaymentWall?

lq2018
Contributor
Contributor

Hello everyone,

we would like to integrate the PaymentWall "dynamically".

 

In our checkout flow we're creating a session and collecting all necessary data for creating a Payment (PayPal PLUS) via REST API. Our checkout flow is a single page application, and I would like to create the Payment at the end of it, receiving the approvalLink by PayPal and displaying the PayPal PaymentWall at the last step of our checkout flow in that single page application.

 

Everything work's fine so far, but the "ppplus"-Library (we're using: https://www.paypalobjects.com/webstatic/ppplus/ppplus.min.js) doesn't really like the idea to create that "#ppplus" - placeholder/DIV container dynamically (Error occurs: INTERNAL-LOG: renderMessage(), warning: {"type":"checks_failed","sourcePath":"/placeholder","sourceValue":"ppplus"} ppplus.min.js:25 Invalid 'placeholder'.). When I create that "#ppplus" DIV element beforehand ("statically") in the DOM with and attaching that "approvalLink" later on, it's working. But I don't really wanna move that element manually or do other smelling stuff here.

 

Is there a way to get this working?

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.