Android In-App Webview Subscription flow fails after clicking "Agree & Subscribe"

red-digital
Contributor
Contributor

As far as I know this only affects In-App webviews + PayPal Subscriptions. We are using the HTML PayPal button to launch our subscription flow, and within the iframe that shows up, the very last step will never get loaded due to a mis-configured `X-Frame-Options` value, as you can see from the screenshots below. (Apologies as some screens contain non-English contents, I've added captions where necessary)

 

We managed to capture this error message for the very last step (where it says "Webpage not available"):

 

Refused to display 'https://www.sandbox.paypal.com/webapps/billing/subscriptions?ba_token=BA-6TU87090GM8..............' in a frame because it set 'X-Frame-Options' to 'sameorigin'.", source: about:blank (0)

paypal-1-plan.png1 - Webview with PayPal subscription button2 - Display PayPal login screen within iframe3 - Screen showing the "Agree & Subscribe" button

paypal-4-error.png4 - Error

 

Login to Me Too
4 REPLIES 4

red-digital
Contributor
Contributor

Re-uploading screenshots:

 

PayPal login screen in webview iframePayPal login screen in webview iframepaypal-3-agree.pngError Message (Android Webview)Error Message (Android Webview)

Login to Me Too

sad-boi
New Community Member

Any updates about this? I have the same exact problem.

Login to Me Too

red-digital
Contributor
Contributor

@sad-boi unfortunately no, still stuck on this...

Login to Me Too

red-digital
Contributor
Contributor

Obviously I'm no PayPal engineer, but maybe this can be resolved by removing the `X-FRAME-OPTIONS: SAMEORIGIN` response header at the very last page?

 

```

https://www.sandbox.paypal.com/webapps/billing/subscriptions?ba_token=blahblah

```

 

Or am I missing something entirely?

Login to Me Too

Haven't Found your Answer?

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