【问题标题】:Google pay button not showing in flutter_stripe package payment sheetFlutter_stripe 包裹付款表中未显示 Google 付款按钮
【发布时间】:2022-08-21 02:30:11
【问题描述】:

我使用flutter_stripe: ^3.3.0 来实现条带支付,一切顺利,但我在条带支付表顶部看不到谷歌支付按钮。我已根据https://docs.page/flutter-stripe/flutter_stripe/sheet 启用谷歌支付。下面是我得到的。

  Future<void> makePayment(
  {String amount,String currency}) async {
  try {
  paymentIntentData = await createPaymentIntent(amount, currency);
  if (paymentIntentData != null) {
    await Stripe.instance.initPaymentSheet(
      paymentSheetParameters: SetupPaymentSheetParameters(         
      applePay: true,
      googlePay: true,
      testEnv: true,
      merchantCountryCode: \'US\',
      merchantDisplayName: \'Prospects\',
      customerId: paymentIntentData[\'customer\'],
      paymentIntentClientSecret: paymentIntentData[\'client_secret\'],
      customerEphemeralKeySecret: paymentIntentData[\'ephemeralKey\'],
    ));
    displayPaymentSheet();
  }
} catch (e, s) {
  print(\'exception:$e$s\');
}
}
  • 您可以在该设备上的移动 Chrome 中看到此链接上的 Google Pay 按钮吗? stripe.com/docs/stripe-js/elements/payment-request-button。如果不是,那么这是您的钱包/设置有问题。否则,它可能与代码相关。
  • 这是关于颤振应用程序
  • 是的我明白。如果您的代码或钱包有问题,该链接用于故障排除。
  • 好的。问题解决了

标签: flutter stripe-payments flutter-dependencies google-pay


【解决方案1】:

同样的问题,请问你是怎么解决的?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-03-10
    • 2015-01-19
    • 1970-01-01
    • 2012-09-29
    • 1970-01-01
    • 1970-01-01
    • 2018-10-27
    相关资源
    最近更新 更多