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

ApplePay Show [General] Connection to remote alert view service failed #11

Closed
ibrafayez opened this issue Apr 19, 2021 · 12 comments
Closed

Comments

@ibrafayez
Copy link

ibrafayez commented Apr 19, 2021

When I try to pay with ApplePay it shows the following error:

[General] Connection to remote alert view service failed

ApplePay is Active on PayTabs:
paytabs_applepay

Also, Apple Pay works on the website but not on the app

startApplePayPayment method:

FlutterPaytabsBridge.startApplePayPayment(configuration, (event) {

        if (event["status"] == "success") {
          successPayment();
        } else if (event["status"] == "error") {
          // Handle error here.
          _Result =  'An Error Has Occurred, Please try again later';
        } else if (event["status"] == "event") {
          // Handle events here.
          _Result = "Something went wrong";
        }
    });

Note: I removed setState because it shows another error #10

@mohamedkhairy953
Copy link
Contributor

We will check it and back to you tomorrow ISA

@MuhamedAdly
Copy link
Collaborator

Hi @ibrafayez

If you are using StatefulWidget so you should use setState() to update your widget state, And regarding the issue, it is not related to ApplePay functionality, please try to print the event in your startApplePayPayment or try to run our sample app just to make sure the issue not related to PayTabs flutter plugin.

Waiting for your reply

Thanks

@ibrafayez
Copy link
Author

I updated flutter_paytabs_bridge to 2.0.4 👍

I added "print(event)" in startApplePayPayment and I got:

[General] Connection to remote alert view service failed
flutter: {status: event, code: 0, message: Cancelled}

I also tried your sample app:
On the simulator it works fine (It made me happy at first), but not when I build the app on my phone.

on my phone I got same error as my project.

ezgif-7-aea001a6ea00

Kind Regards

@MuhamedAdly
Copy link
Collaborator

MuhamedAdly commented Apr 20, 2021

did you configure your app for apple pay and added a merchant apple pay id to your configuration?

@ibrafayez
Copy link
Author

Yes for my app I configured for ApplePay and added the apple pay id

Screen Shot 2021-04-20 at 5 18 04 PM

configuration:
Screen Shot 2021-04-20 at 5 23 26 PM

@MuhamedAdly
Copy link
Collaborator

send me a message to muhamedadly AT gmail.com or m.adly At paytabs.com to arrange a technical support call.

@ibrafayez
Copy link
Author

Sent,

Thank you

@Emadeddin-eibo
Copy link

Any updates on this? I'm having the same error.

@Musaddiq625
Copy link

Yes for my app I configured for ApplePay and added the apple pay id

Screen Shot 2021-04-20 at 5 18 04 PM

configuration: Screen Shot 2021-04-20 at 5 23 26 PM

Hello @MuhamedAdly I'm having the same issue
everything is all set, normal payment is working smoothly
but having 'cancelled' in response on Apple Pay

@MuhamedAdly
Copy link
Collaborator

Did you follow the steps in the guide to setup Apple Pay certificate:
https://github.com/paytabscom/flutter-sdk-bridge/blob/pt2/ApplePayConfiguration.md

@Musaddiq625
Copy link

Musaddiq625 commented Nov 12, 2021 via email

@Musaddiq625
Copy link

atlast.. fixed 😌
Apple pay was disabled on XCode -_-

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

5 participants