PlatformPayWebPaymentRequestCreateOptions class
Constructors
-
PlatformPayWebPaymentRequestCreateOptions({required String country, required String currency, required PlatformPayWebPaymentItem total, @Default([]) List<PlatformPayWebPaymentItem> displayItems, @Default(false) bool requestPayerName, @Default(false) bool requestPayerEmail, @Default(false) bool requestPayerPhone, @Default(false) bool requestShipping, @Default([]) List<PlatformPayWebShippingOption> shippingOptions, @Default([]) List<PlatformPayWebWalletType> disableWallets})
-
const
factory
-
PlatformPayWebPaymentRequestCreateOptions.fromJson(Map<String, dynamic> json)
-
factory
Properties
-
copyWith
→ $PlatformPayWebPaymentRequestCreateOptionsCopyWith<PlatformPayWebPaymentRequestCreateOptions>
-
no setterinherited
-
country
→ String
-
The two-letter country code of your Stripe account (e.g., US).
no setterinherited
-
currency
→ String
-
Three character currency code (e.g., usd).
no setterinherited
-
disableWallets
→ List<PlatformPayWebWalletType>
-
An array of wallet strings. Can be one or more of applePay, googlePay, link, and browserCard. Use this option
to disable Apple Pay, Google Pay, Link, and/or browser-saved cards.
no setterinherited
-
displayItems
→ List<PlatformPayWebPaymentItem>
-
An array of PaymentItem objects. These objects are shown as line items in the browser’s payment interface.
Note that the sum of the line item amounts does not need to add up to the total amount above.
no setterinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
requestPayerEmail
→ bool
-
See the requestPayerName option.
no setterinherited
-
requestPayerName
→ bool
-
By default, the browser‘s payment interface only asks the customer for actual payment information. A customer
name can be collected by setting this option to true. This collected name will appears in the PaymentResponse object.
no setterinherited
-
requestPayerPhone
→ bool
-
See the requestPayerName option.
no setterinherited
-
requestShipping
→ bool
-
Collect shipping address by setting this option to true. The address appears in the PaymentResponse.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
shippingOptions
→ List<PlatformPayWebShippingOption>
-
An array of ShippingOption objects. The first shipping option listed appears in the browser payment interface as the default option.
no setterinherited
-
total
→ PlatformPayWebPaymentItem
-
A PaymentItem object. This PaymentItem is shown to the customer in the browser’s payment interface.
no setterinherited