paytabscom / flutter-sdk-bridge

MIT License
12 stars 11 forks source link

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

Closed ibrafayez closed 3 years ago

ibrafayez commented 3 years ago

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 commented 3 years ago

We will check it and back to you tomorrow ISA

MuhamedAdly commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

ibrafayez commented 3 years ago

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 commented 3 years ago

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

ibrafayez commented 3 years ago

Sent,

Thank you

Emadeddin-eibo commented 2 years ago

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

Musaddiq625 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

Thanks for the fast response, actually I was just verifying all parameters. I've found that 'Apple Pay' is not enabled from the paytab dashboard, I've enabled it, but I think it will take some time.

If that will work or not, I'll get back to you Thankss

On Thu, Nov 11, 2021 at 2:39 PM Mohamed Adly @.***> wrote:

Did you follow the steps in the guide to setup Apple Pay certificate:

https://github.com/paytabscom/flutter-sdk-bridge/blob/pt2/ApplePayConfiguration.md

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/paytabscom/flutter-sdk-bridge/issues/11#issuecomment-966152499, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJBHUDUJZ2HIMRDQYVHPMXLULOFMDANCNFSM43GMBTYA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Musaddiq625 commented 2 years ago

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