flutter-stripe / flutter_stripe

Flutter SDK for Stripe.
https://pub.dev/packages/flutter_stripe
961 stars 530 forks source link

Apple pay button is not showing. #952

Closed Alfaizkhan closed 2 years ago

Alfaizkhan commented 2 years ago

Describe the bug Apple pay button is not showing in physical device but working fine in simulator. Here's code snippet.

  // Initialize the payment sheet
  await Stripe.instance.initPaymentSheet(
    paymentSheetParameters: SetupPaymentSheetParameters(
      // Main params
      paymentIntentClientSecret: clientSecret,
      customerId: customerId,
      customerEphemeralKeySecret: ephemeralKey,
      // Merchant Name
      merchantDisplayName: 'Agent Duty',
      style: ThemeMode.system,
      applePay: const PaymentSheetApplePay(
        merchantCountryCode: 'US',
      ),
    ),
  );

Simulator Screen Shot - iPhone 11 Pro Max - 2022-09-30 at 21 36 08

remonh87 commented 2 years ago

did you create a ceritficate as described in :https://developer.apple.com/documentation/passkit/apple_pay/setting_up_apple_pay. ?