ente icon indicating copy to clipboard operation
ente copied to clipboard

Payment via Ideal in app is broken.

Open ph00lt0 opened this issue 1 year ago • 3 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to upgrade plan
  2. Choose ideal, chose bank, proceed
  3. Link will open to open bank app but this doesnt open the bank app

Expected behavior Using correct webview or using default broseer to actually open payments in the bank app.

Screenshots IMG_20230909_084219

Smartphone (please complete the following information):

  • Device: Pixel 7 Pro
  • OS: 13
  • App Version version 0.7.92 io.ente.photos versionCode 492

ph00lt0 avatar Sep 09 '23 06:09 ph00lt0

Hey, we had already raised this issue with Stripe. Will bump up this thread with them. In the meanwhile could you please use our desktop/web app to subscribe? Thank you!

vishnukvmd avatar Sep 09 '23 07:09 vishnukvmd

Subscribed using other payment method :D But I do actually think this issue isn't with stripe. This is caused because it is supposed to open as local link in the banking app and I believe your implementation prevents that.

ph00lt0 avatar Sep 10 '23 14:09 ph00lt0

Got it, thank you!

I just noticed that the page that was opened is not using a custom URL scheme, but is prefixed with http:// – to which the banking app has likely registered a deeplink, that the WebView is unaware of.

Possible solutions:

  1. Maintain a set of URL prefixes, for which we should intercept the request and trigger the URL launcher. For example, in this case it would be http://nl.rabobank.idealv2//
  2. Always open payments.ente.io in the system's default browser (that will forward deeplinks correctly), and post payment completion use a deeplink to bring ente back into the foreground

cc @ua741

vishnukvmd avatar Sep 10 '23 17:09 vishnukvmd