PaymentSheetApplePay constructor

  1. @JsonSerializable(explicitToJson: true)
const PaymentSheetApplePay({
  1. required String merchantCountryCode,
  2. List<ApplePayCartSummaryItem>? cartItems,
  3. PlatformButtonType? buttonType,
  4. PaymentRequestType? request,
  5. @JsonKey(includeFromJson: false, includeToJson: false) OnOrderTracking? setOrderTracking,
})

Implementation

@JsonSerializable(explicitToJson: true)
const factory PaymentSheetApplePay({
  ///The two-letter ISO 3166 code of the country of your business, e.g. "US"
  required String merchantCountryCode,

  ///An array of CartSummaryItem item objects that summarize the amount of the payment. If you're using a SetupIntent
  /// for a recurring payment, you should set this to display the amount you intend to charge.
  List<ApplePayCartSummaryItem>? cartItems,

  /// Sets the the text displayed by the call to action button in the apple pay sheet.
  PlatformButtonType? buttonType,

  /// Use this for a different payment request than a one time request.
  PaymentRequestType? request,

  /// Callback function for setting the order details (retrieved from your server) to give users the
  /// ability to track and manage their purchases in Wallet. Stripe calls your implementation after the
  /// payment is complete, but before iOS dismisses the Apple Pay sheet. You must call the `completion`
  /// function, or else the Apple Pay sheet will hang.
  @JsonKey(includeFromJson: false, includeToJson: false)
  OnOrderTracking? setOrderTracking,
}) = _PaymentSheetApplePay;