google pay button is not showing in payment #1815
Unanswered
anbarasannethaji
asked this question in
Q&A
Replies: 2 comments
-
|
I have the same issue. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@anbarasannethaji @debasmitasarkar Have you solved it or still have the issue? I am also facing the same. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Future<void> initPaymentSheet() async { try { var paymentDetails = await fetchPaymentDetails(); Stripe.merchantIdentifier = 'merchant.com.merchant.merchant'; Stripe.publishableKey = paymentDetails['data']['publishable_key']; await Stripe.instance.applySettings(); await Stripe.instance.initPaymentSheet( paymentSheetParameters: SetupPaymentSheetParameters( customFlow: false, merchantDisplayName: 'merchant name', paymentIntentClientSecret: paymentDetails['data']['payment_intent'], customerEphemeralKeySecret: paymentDetails['data']['ephemeral_key'], customerId: paymentDetails['data']['customer'], googlePay: const PaymentSheetGooglePay( merchantCountryCode: 'GB', currencyCode: 'GBP', testEnv: true, ), applePay: const PaymentSheetApplePay( merchantCountryCode: "GB", buttonType: PlatformButtonType.buy, ), style: ThemeMode.dark, ), ); setState(() { _ready = true; }); } catch (e) { setState(() { _ready = false; }); } }.i have enter this line in android manifest
<meta-data android:name="com.google.android.gms.wallet.api.enabled" android:value="true" />between application and this is in app level in dependencies
implementation("com.google.android.gms:play-services-wallet:19.4.0")Beta Was this translation helpful? Give feedback.
All reactions