Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to close Paypal from ionic application #165

Open
yashp98 opened this issue Feb 26, 2021 · 3 comments
Open

Unable to close Paypal from ionic application #165

yashp98 opened this issue Feb 26, 2021 · 3 comments

Comments

@yashp98
Copy link

yashp98 commented Feb 26, 2021

I have ionic application. I am using this package in ionic application . but when I open PayPal popup in small device close button is hide .unable to go back to app and for notch device close button is cut down .any one know how to open in browser or any other solution.
Simulator Screen Shot - iPod touch (7th generation) - 2021-02-26 at 09 46 06

image

@marshall86
Copy link

facing the same issue.. would be nice to have a way to customize that overlay as well, to remove the white border i.e.

@marshall86
Copy link

I managed to remove the ugly white border and the close button.

You need to put this style in your custom.scss file or any other global css file:

html.ios .paypal-checkout-sandbox-iframe {
    top: 25px !important; 
    border: 0;
}

this style will remove the white border if you like and move the overlay slightly down, you can really style the close button because it's inside an iframe that is generated only once the paypal js sdk is loaded.

@marshall86
Copy link

marshall86 commented May 27, 2021

`.paypal-checkout-sandbox-iframe {
border: 0;
}

html.plt-ios .paypal-checkout-sandbox-iframe {
top: env(safe-area-inset-top) !important;
}`

This is the best way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants