PaymentSheetApplePay class

Parameters related to the Payment sheet Apple Pay config.

Annotations
  • @freezed

Constructors

PaymentSheetApplePay({required String merchantCountryCode, List<ApplePayCartSummaryItem>? cartItems, PlatformButtonType? buttonType, PaymentRequestType? request, @JsonKey(includeFromJson: false, includeToJson: false) OnOrderTracking? setOrderTracking})
const
factory
PaymentSheetApplePay.fromJson(Map<String, dynamic> json)
factory

Properties

buttonType PlatformButtonType?
Sets the the text displayed by the call to action button in the apple pay sheet.
no setterinherited
cartItems List<ApplePayCartSummaryItem>?
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.
no setterinherited
copyWith → $PaymentSheetApplePayCopyWith<PaymentSheetApplePay>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
merchantCountryCode String
The two-letter ISO 3166 code of the country of your business, e.g. "US"
no setterinherited
request PaymentRequestType?
Use this for a different payment request than a one time request.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setOrderTracking OnOrderTracking?
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.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited