Google 条纹的付款上不显示付款按钮 sheet

Google Pay button is not displayed on the stripe's payment sheet

描述

使用 flutter_stripe 包,版本 ^1.2.0,在前端执行支付,Google 尽管设置了标志 googlePay: trueSetupPaymentSheetParameters 中使用 Stripe.instance.initPaymentSheet() 初始化付款 sheet。
examples project of the package doesn't provide information about configuring google pay in payment sheet other than setting the flag to true, so i followed these instructions 表单 stripe 的文档集成 google 支付但按钮仍然没有显示在 sheet.

我的代码

    Stripe.publishableKey = dotenv.env['STRIPE_PUB_KEY'];
    Stripe.instance.applySettings();
  Future<void> initializePaymentSheet(
    PaymentCredentials credentials,
  ) async {
    Stripe.instance.initPaymentSheet(
      paymentSheetParameters: SetupPaymentSheetParameters(
        applePay: Stripe.instance.isApplePaySupported.value,
        googlePay: true,
        style: ThemeMode.dark,
        testEnv: true,
        merchantCountryCode: 'USA',
        merchantDisplayName: 'Our App. Inc.',
        customerId: credentials.clientId,
        paymentIntentClientSecret: credentials.paymentIntent,
        customerEphemeralKeySecret: credentials.eKey,
        customFlow: false,
      ),
    );
  }

  Future<void> presentPaymentSheet(String paymentIntent) async =>
      Stripe.instance.presentPaymentSheet(
        parameters: PresentPaymentSheetParameters(
          clientSecret: paymentIntent,
          confirmPayment: true,
        ),
      );

在 sheet 上显示此按钮缺少什么?

正如@Romeo 在上面的评论中所说,Google 当安装了 gPay 应用程序并且上面至少有一张卡可用时,会显示支付按钮。 我使用 pay 插件在我的应用程序上使用单独的 google 支付按钮,它与 google 支付 sheet 一起显示,所以我认为它应该显示在 stripe 的支付 sheet 还有。