PaymentMethodParams class
Parameters that specify the desired configuration of a specific payment method.
- Annotations
-
- @Freezed(unionKey: 'paymentMethodType')
Constructors
- PaymentMethodParams.affirm({required PaymentMethodData paymentMethodData})
-
Config parameters for affirm payment method.
Shipping details are required most of the time.
constfactory
- PaymentMethodParams.afterpayClearpay({required PaymentMethodDataAfterPay paymentMethodData})
-
constfactory
- PaymentMethodParams.alipay({required PaymentMethodData paymentMethodData})
-
Config parameters for Alipay card payment method.
constfactory
- PaymentMethodParams.aubecs({required PaymentMethodDataAubecs paymentMethodData})
-
Config parameters for aubecs debit payment method.
constfactory
- PaymentMethodParams.bancontact({required PaymentMethodData paymentMethodData})
-
Config parameters for bankcontact payment method.
constfactory
- PaymentMethodParams.card({required PaymentMethodData paymentMethodData})
-
Config parameters for card payment method.
constfactory
- PaymentMethodParams.cardFromMethodId({required PaymentMethodDataCardFromMethod paymentMethodData})
-
Config parameters for card from method id payment method.
constfactory
- PaymentMethodParams.cardFromToken({required PaymentMethodDataCardFromToken paymentMethodData})
-
Config parameters for card with token payment method.
constfactory
- PaymentMethodParams.eps({required PaymentMethodData paymentMethodData})
-
Config parameters for eps payment method.
constfactory
- PaymentMethodParams.fpx({required PaymentMethodDataFpx paymentMethodData})
-
constfactory
-
PaymentMethodParams.fromJson(Map<
String, dynamic> json) -
factory
- PaymentMethodParams.giroPay({required PaymentMethodData paymentMethodData})
-
Config parameters for giropay payment method.
constfactory
- PaymentMethodParams.grabPay({required PaymentMethodData paymentMethodData})
-
Config parameters for GrabPay payment method.
constfactory
- PaymentMethodParams.ideal({required PaymentMethodDataIdeal paymentMethodData})
-
Config parameters for ideal payment method.
constfactory
- PaymentMethodParams.klarna({required PaymentMethodData paymentMethodData})
-
constfactory
- PaymentMethodParams.oxxo({required PaymentMethodData paymentMethodData})
-
constfactory
- PaymentMethodParams.p24({required PaymentMethodData paymentMethodData})
-
Config parameters for P24 payment method.
constfactory
- PaymentMethodParams.payPal({required PaymentMethodData paymentMethodData})
-
Paypal is in private beta make sure to request access at Stripe to try it out.
constfactory
- PaymentMethodParams.sepaDebit({required PaymentMethodDataSepa paymentMethodData})
-
constfactory
- PaymentMethodParams.sofort({required PaymentMethodDataSofort paymentMethodData})
-
constfactory
- PaymentMethodParams.usBankAccount({required PaymentMethodDataUsBank paymentMethodData})
-
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- paymentMethodData → Object
-
Paymentmethod data for this paymentmethod.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> ({required TResult card(_PaymentMethodParamsCard value), required TResult cardFromToken(_PaymentMethodParamsCardWithToken value), required TResult cardFromMethodId(_PaymentMethodParamsCardWithMethodId value), required TResult alipay(_PaymentMethodParamsAlipay value), required TResult ideal(_PaymentMethodParamsIdeal value), required TResult aubecs(_PaymentMethodParamsAubecs value), required TResult bancontact(_PaymentMethodParamsBankContact value), required TResult giroPay(_PaymentMethodParamsGiroPay value), required TResult eps(_PaymentMethodParamsEps value), required TResult affirm(_PaymentMethodParamsAffirm value), required TResult grabPay(_PaymentMethodParamsPay value), required TResult p24(_PaymentMethodParamsP24 value), required TResult fpx(_PaymentMethodParamsFpx value), required TResult sepaDebit(_PaymentMethodParamsSepaDebit value), required TResult sofort(_PaymentMethodParamsSofort value), required TResult afterpayClearpay(_PaymentMethodParamsAfterpayClearpay value), required TResult oxxo(_PaymentMethodParamsOxxo value), required TResult klarna(_PaymentMethodParamsKlarna value), required TResult payPal(_PaymentMethodParamsPayPal value), required TResult usBankAccount(_PaymentMethodParamsUsBankAccount value)}) → TResult -
inherited
-
mapOrNull<
TResult extends Object?> ({TResult? card(_PaymentMethodParamsCard value)?, TResult? cardFromToken(_PaymentMethodParamsCardWithToken value)?, TResult? cardFromMethodId(_PaymentMethodParamsCardWithMethodId value)?, TResult? alipay(_PaymentMethodParamsAlipay value)?, TResult? ideal(_PaymentMethodParamsIdeal value)?, TResult? aubecs(_PaymentMethodParamsAubecs value)?, TResult? bancontact(_PaymentMethodParamsBankContact value)?, TResult? giroPay(_PaymentMethodParamsGiroPay value)?, TResult? eps(_PaymentMethodParamsEps value)?, TResult? affirm(_PaymentMethodParamsAffirm value)?, TResult? grabPay(_PaymentMethodParamsPay value)?, TResult? p24(_PaymentMethodParamsP24 value)?, TResult? fpx(_PaymentMethodParamsFpx value)?, TResult? sepaDebit(_PaymentMethodParamsSepaDebit value)?, TResult? sofort(_PaymentMethodParamsSofort value)?, TResult? afterpayClearpay(_PaymentMethodParamsAfterpayClearpay value)?, TResult? oxxo(_PaymentMethodParamsOxxo value)?, TResult? klarna(_PaymentMethodParamsKlarna value)?, TResult? payPal(_PaymentMethodParamsPayPal value)?, TResult? usBankAccount(_PaymentMethodParamsUsBankAccount value)?}) → TResult? -
inherited
-
maybeMap<
TResult extends Object?> ({TResult card(_PaymentMethodParamsCard value)?, TResult cardFromToken(_PaymentMethodParamsCardWithToken value)?, TResult cardFromMethodId(_PaymentMethodParamsCardWithMethodId value)?, TResult alipay(_PaymentMethodParamsAlipay value)?, TResult ideal(_PaymentMethodParamsIdeal value)?, TResult aubecs(_PaymentMethodParamsAubecs value)?, TResult bancontact(_PaymentMethodParamsBankContact value)?, TResult giroPay(_PaymentMethodParamsGiroPay value)?, TResult eps(_PaymentMethodParamsEps value)?, TResult affirm(_PaymentMethodParamsAffirm value)?, TResult grabPay(_PaymentMethodParamsPay value)?, TResult p24(_PaymentMethodParamsP24 value)?, TResult fpx(_PaymentMethodParamsFpx value)?, TResult sepaDebit(_PaymentMethodParamsSepaDebit value)?, TResult sofort(_PaymentMethodParamsSofort value)?, TResult afterpayClearpay(_PaymentMethodParamsAfterpayClearpay value)?, TResult oxxo(_PaymentMethodParamsOxxo value)?, TResult klarna(_PaymentMethodParamsKlarna value)?, TResult payPal(_PaymentMethodParamsPayPal value)?, TResult usBankAccount(_PaymentMethodParamsUsBankAccount value)?, required TResult orElse()}) → TResult -
inherited
-
maybeWhen<
TResult extends Object?> ({TResult card(PaymentMethodData paymentMethodData)?, TResult cardFromToken(PaymentMethodDataCardFromToken paymentMethodData)?, TResult cardFromMethodId(PaymentMethodDataCardFromMethod paymentMethodData)?, TResult alipay(PaymentMethodData paymentMethodData)?, TResult ideal(PaymentMethodDataIdeal paymentMethodData)?, TResult aubecs(PaymentMethodDataAubecs paymentMethodData)?, TResult bancontact(PaymentMethodData paymentMethodData)?, TResult giroPay(PaymentMethodData paymentMethodData)?, TResult eps(PaymentMethodData paymentMethodData)?, TResult affirm(PaymentMethodData paymentMethodData)?, TResult grabPay(PaymentMethodData paymentMethodData)?, TResult p24(PaymentMethodData paymentMethodData)?, TResult fpx(PaymentMethodDataFpx paymentMethodData)?, TResult sepaDebit(PaymentMethodDataSepa paymentMethodData)?, TResult sofort(PaymentMethodDataSofort paymentMethodData)?, TResult afterpayClearpay(PaymentMethodDataAfterPay paymentMethodData)?, TResult oxxo(PaymentMethodData paymentMethodData)?, TResult klarna(PaymentMethodData paymentMethodData)?, TResult payPal(PaymentMethodData paymentMethodData)?, TResult usBankAccount(PaymentMethodDataUsBank paymentMethodData)?, required TResult orElse()}) → TResult -
inherited
-
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
-
when<
TResult extends Object?> ({required TResult card(PaymentMethodData paymentMethodData), required TResult cardFromToken(PaymentMethodDataCardFromToken paymentMethodData), required TResult cardFromMethodId(PaymentMethodDataCardFromMethod paymentMethodData), required TResult alipay(PaymentMethodData paymentMethodData), required TResult ideal(PaymentMethodDataIdeal paymentMethodData), required TResult aubecs(PaymentMethodDataAubecs paymentMethodData), required TResult bancontact(PaymentMethodData paymentMethodData), required TResult giroPay(PaymentMethodData paymentMethodData), required TResult eps(PaymentMethodData paymentMethodData), required TResult affirm(PaymentMethodData paymentMethodData), required TResult grabPay(PaymentMethodData paymentMethodData), required TResult p24(PaymentMethodData paymentMethodData), required TResult fpx(PaymentMethodDataFpx paymentMethodData), required TResult sepaDebit(PaymentMethodDataSepa paymentMethodData), required TResult sofort(PaymentMethodDataSofort paymentMethodData), required TResult afterpayClearpay(PaymentMethodDataAfterPay paymentMethodData), required TResult oxxo(PaymentMethodData paymentMethodData), required TResult klarna(PaymentMethodData paymentMethodData), required TResult payPal(PaymentMethodData paymentMethodData), required TResult usBankAccount(PaymentMethodDataUsBank paymentMethodData)}) → TResult -
inherited
-
whenOrNull<
TResult extends Object?> ({TResult? card(PaymentMethodData paymentMethodData)?, TResult? cardFromToken(PaymentMethodDataCardFromToken paymentMethodData)?, TResult? cardFromMethodId(PaymentMethodDataCardFromMethod paymentMethodData)?, TResult? alipay(PaymentMethodData paymentMethodData)?, TResult? ideal(PaymentMethodDataIdeal paymentMethodData)?, TResult? aubecs(PaymentMethodDataAubecs paymentMethodData)?, TResult? bancontact(PaymentMethodData paymentMethodData)?, TResult? giroPay(PaymentMethodData paymentMethodData)?, TResult? eps(PaymentMethodData paymentMethodData)?, TResult? affirm(PaymentMethodData paymentMethodData)?, TResult? grabPay(PaymentMethodData paymentMethodData)?, TResult? p24(PaymentMethodData paymentMethodData)?, TResult? fpx(PaymentMethodDataFpx paymentMethodData)?, TResult? sepaDebit(PaymentMethodDataSepa paymentMethodData)?, TResult? sofort(PaymentMethodDataSofort paymentMethodData)?, TResult? afterpayClearpay(PaymentMethodDataAfterPay paymentMethodData)?, TResult? oxxo(PaymentMethodData paymentMethodData)?, TResult? klarna(PaymentMethodData paymentMethodData)?, TResult? payPal(PaymentMethodData paymentMethodData)?, TResult? usBankAccount(PaymentMethodDataUsBank paymentMethodData)?}) → TResult? -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited