PaymentSheetApplePay constructor

  1. @JsonSerializable(explicitToJson: true)
const PaymentSheetApplePay({
  1. required String merchantCountryCode,
  2. List<ApplePayCartSummaryItem>? paymentSummaryItems,
})

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>? paymentSummaryItems,
}) = _PaymentSheetApplePay;