Paypal integration with framwork7

I need to integrate paypal checkout button on my framwork7 app.
But I’m confused with how to add that button.
Because that button is to be created by a js.

Then I tried by creating that button on an another page and loaded that page using tag.

It works.
But the problem is when the app goes full screen
The button can’t open the PayPal login pop-up.

Is there any way to solve this.
Thank you.

how are you adding the button? are sure it works?