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

Calling SumUp from a PWA #10

Open
robwatkiss opened this issue Dec 5, 2018 · 18 comments
Open

Calling SumUp from a PWA #10

robwatkiss opened this issue Dec 5, 2018 · 18 comments

Comments

@robwatkiss
Copy link

robwatkiss commented Dec 5, 2018

The iOS (v12.1) SumUp app (v2.0.4) is being opened using a sumupmerchant://pay/1.0 link and works almost as expected when using the webapp in Safari however when the same URI is called from our WebApp installed as a PWA the SumUp app it throws an error. The error text and the test URI are included below.

(native popup)
Server Error
Something went wrong! Please try again.

(app popup)
Connection Error
We lost connection to the SumUp server

(URI)
sumupmerchant://pay/1.0?affiliate-key=<affiliate-key>&app-id=com.company.basecamppos.test&amount=1.56&currency=CHF&title=Test%20Title&callbacksuccess=https%3A%2F%2Fpos.website.com%2F%23%2Fcallback%2Fpayment-success&callbackfail=https%3A%2F%2Fpos.website.com%2F%23%2Fcallback%2Fpayment-fail

The only difference here is that we are calling the link from a PWA not from Safari. We need to be able to run our webapp as a PWA as opposed to in Safari as it prevents the need to click 'open SumUp' every time and also helps us lock down the security of our POS devices.

@mollidor
Copy link
Contributor

Hi @robwatkiss

My assumption is that installing your app as a PW will create a bundle identifier that is not whitelisted for your affiliate key. Please get in touch with [email protected] so we can get you up and running.

Regards,
Lukas

@robwatkiss
Copy link
Author

Hi @mollidor

I understand why you have closed this issue but perhaps it's worth keeping it open until we can find a resolution? I very much doubt I'm going to be the last person to be frustrated by this issue! In the mean time I've sent a message to integration@ with some more details of our integration.

Cheers,
Rob

@mollidor
Copy link
Contributor

Sorry about that. Indeed!

@mollidor mollidor reopened this Dec 13, 2018
@steffanhalv
Copy link

@robwatkiss Got any feedback?

@phoebusryan
Copy link

Is there a fix? I've got the same issue.

@dnstufff
Copy link

dnstufff commented Jan 6, 2021

  1. Open your SumUp dashboard -> Profile -> Developers.
  2. Add your app bundle identifier at the provided field
  3. All Done.

Note for iOS and Expo: If using expo and your app runs in expo client, add host.exp.Exponent - the bundle id of iOS expo client.
Android uses the new API, so it's fine if you add the app-id param.

@gmwilhelm
Copy link

I also have this problem. I did add the bundle id in the sumup dashboard and it is working fine for android. But on iOS i always get the connection error.

@phoebusryan
Copy link

@gmwilhelm Try add the App-IDs com.apple.mobilesafari and com.sumup.appswitch in the SumUp Dashboard.

@o-zz-kx
Copy link

o-zz-kx commented Apr 3, 2021

@phoebusryan Thanks a lot man. You fixed my issue. Added the two App-IDs and now it works.

@phoebusryan
Copy link

@okx your welcome :)

@ifixr
Copy link

ifixr commented Jun 15, 2022

com.sumup.appswitch is what makes the difference.

@kuzmadomen
Copy link

Thank you that fixed the problem.

@Bart-Westenenk
Copy link

Still having the same problem. Even though I have added both the payment switch bundle id and mobile safari. Any further clues?

@phoebusryan
Copy link

Still having the same problem. Even though I have added both the payment switch bundle id and mobile safari. Any further clues?

That should really work.. or are you using android?

@Bart-Westenenk
Copy link

I am for sure using IOS. I have tested it only with my own device (Iphone 13 pro) as I dont have any other available. On Android it worked for multiple different devices.

@phoebusryan
Copy link

Whats your URI? Android and iOS uses different URIs for this scheme

@mandalito
Copy link

Hello could someone help me ? I have this same problem but can't find how to solve it.

@phoebusryan
Copy link

@christianRusso18 Try add the App-IDs com.apple.mobilesafari and com.sumup.appswitch in the SumUp Dashboard. Super simple

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