-
Notifications
You must be signed in to change notification settings - Fork 131
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
Google Play button not visible #125
Comments
How does your UI code look like? |
@JlUgia
|
@JlUgia please help with this issue asap. |
Can you share the error that you are receiving? |
This is the code I used.
Added onError, but it didn't print anything on the console. As shown in the image above, this is how the UI appears; childOnError is executed. |
same issue here also. But onError is printing package:pay_platform_interface/core/payment_configuration.dart': Failed assertion: line 55 pos 16: 'configuration.containsKey('provider')': is not true. |
my code is exactly like yours @HaardikBhagtani. any solution on this |
No, haven't found any solution. |
@HaardikBhagtani Please set the static height and width in Googlepaybutton.
|
no, it didn't work. @panchalAlpit |
Google Pay is not available in all countries.Please take a look at this : https://support.google.com/pay/india/answer/9023773?hl=en-GB#zippy=%2Cpay-online-or-in-apps |
@kennest The link says that Google Pay is available in India, and it is where I am building the app, so why is the issue coming up? |
i'm having the same problem, did u find a solution for this ? |
No, not yet. @kldawad-wecan |
same problem, apple button and other options to pay showing error failed to open the config json file on real device case: |
@codendtech in your case, the error is pointing to your configuration, which is missing the @HaardikBhagtani @kldawad-wecan @teoprayoga, can you share the configuration you are using? (make sure to remove any secret value before doing so). |
I'm facing the same issue. The code doesn't throw any error and the GooglePayButton and ApplePayButton are being shown in WidgetInspector but not in the UI. I have tried wrapping the button inside sizedBox also and checked all configs for the plugin. |
i'm having the same problem, did anyone find a solution for this ? |
I think this is also happening to me, but i found that its only happens on emulator with API 30 and my phone, i tested on a emulator with API 31 and 33 and the button show up. Any solution yet? |
Hello, I have the same problem. How did you solve it |
Hello, I have the same problem. How did you solve it |
The button is only shown if the |
Same problem here, any solution |
As mentioned above, there are multiple reasons why the Google Pay button does not show if you use the quick integration path. To test the integration make sure that:
If you still don't see the Google Pay button, add a comment to this thread including the code that draws your button and your payment configuration JSON (redacting sensitive information before posting). |
@JlUgia can I show Google Pay Button on iOS device? the Google Pay button only show on Android device. so I assume it won't be available for iOS right? |
hell
i have the same problem also any solution with this , my code only showing on emulator , was not showing on real device, my location was nigeria please help |
@JlUgia plz help what can i do to that |
That's right @AgungLaksana, Apple Pay is only supported on iOS, and Google Pay is only supported on Android at the time. |
Hi @Ridwan093, can you verify that the requirements to use Google Pay are met in the device that you are using to test? |
@HaardikBhagtani change your region from your device. I think you can try to change your region from your country to United States for testing purpose. As I am from Bangladesh and I also face the same issue because Apple pay and Google pay have no support for Bangladesh. So, try in this way I think you can see the magic. |
I had this issue and it was ultimately down to ensuring that the state of widget holding the button was correctly set. I had user actions that were determining when the pay button would show, but button would not show and this caused it always to attempt to access the childOnError property. I used this function every time state was changed and it resolved the issue:
And then wherever state was changed I made a call to that function: |
this error seems to be coming in adb logcat and Google Pay button not visible instead childOnError triggered.
04-01 02:23:13.308 3020 15516 W TapAndPay: shouldEnableGooglePay: false [CONTEXT service_id=79 ]
04-01 02:23:13.308 3020 15516 I TapAndPay: Disabling TapAndPay HCE service [CONTEXT service_id=79 ]
04-01 02:23:13.375 3020 15516 W TapAndPay: shouldEnableGooglePay: false [CONTEXT service_id=79 ]
04-01 02:23:13.376 3020 15516 I TapAndPay: Disabling TapAndPay HCE service [CONTEXT service_id=79 ]
04-01 02:23:13.400 3020 15516 W TapAndPay: shouldEnableGooglePay: false [CONTEXT service_id=79 ]
04-01 02:23:13.400 3020 15516 I TapAndPay: Disabling TapAndPay HCE service [CONTEXT service_id=79 ]
04-01 02:23:13.409 3020 15516 W TapAndPay: shouldEnableGooglePay: false [CONTEXT service_id=79 ]
04-01 02:23:13.409 3020 15516 I TapAndPay: Disabling TapAndPay HCE service [CONTEXT service_id=79 ]
04-01 02:23:39.243 3020 15516 W TapAndPay: shouldEnableGooglePay: false [CONTEXT service_id=79 ]
04-01 02:23:39.243 3020 15516 I TapAndPay: Disabling TapAndPay HCE service [CONTEXT service_id=79 ]
04-01 02:23:39.267 3020 15516 W TapAndPay: shouldEnableGooglePay: false [CONTEXT service_id=79 ]
The text was updated successfully, but these errors were encountered: