Skip to content

Commit

Permalink
fix: No payment sheet has been initialized yet on iOS (flutter-stripe…
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxnz authored Aug 14, 2022
1 parent bbe9060 commit c0718d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/stripe/lib/src/stripe.dart
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ class Stripe {
Future<void> initPaymentSheet({
required SetupPaymentSheetParameters paymentSheetParameters,
}) async {
assert(!(paymentSheetParameters.applePay == true && instance._merchantIdentifier == null), 'merchantIdentifier must be specified if you are using Apple Pay. Please refer to this article to get a merchant identifier: https://support.stripe.com/questions/enable-apple-pay-on-your-stripe-account');
await _awaitForSettings();
await _platform.initPaymentSheet(paymentSheetParameters);
}
Expand Down

0 comments on commit c0718d4

Please sign in to comment.