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.
const
factory
PaymentMethodParams.afterpayClearpay({required PaymentMethodDataAfterPay paymentMethodData})
const
factory
PaymentMethodParams.alipay({required PaymentMethodData paymentMethodData})
Config parameters for Alipay card payment method.
const
factory
PaymentMethodParams.aubecs({required PaymentMethodDataAubecs paymentMethodData})
Config parameters for aubecs debit payment method.
const
factory
PaymentMethodParams.bancontact({required PaymentMethodData paymentMethodData})
Config parameters for bankcontact payment method.
const
factory
PaymentMethodParams.card({required PaymentMethodData paymentMethodData})
Config parameters for card payment method.
const
factory
PaymentMethodParams.cardFromMethodId({required PaymentMethodDataCardFromMethod paymentMethodData})
Config parameters for card from method id payment method.
const
factory
PaymentMethodParams.cardFromToken({required PaymentMethodDataCardFromToken paymentMethodData})
Config parameters for card with token payment method.
const
factory
PaymentMethodParams.cashAppPay({required PaymentMethodData paymentMethodData})
Config parameters for cashapp payment method.
const
factory
PaymentMethodParams.eps({required PaymentMethodData paymentMethodData})
Config parameters for eps payment method.
const
factory
PaymentMethodParams.fpx({required PaymentMethodDataFpx paymentMethodData})
const
factory
PaymentMethodParams.fromJson(Map<String, dynamic> json)
factory
PaymentMethodParams.giroPay({required PaymentMethodData paymentMethodData})
Config parameters for giropay payment method.
const
factory
PaymentMethodParams.grabPay({required PaymentMethodData paymentMethodData})
Config parameters for GrabPay payment method.
const
factory
PaymentMethodParams.ideal({required PaymentMethodDataIdeal paymentMethodData})
Config parameters for ideal payment method.
const
factory
PaymentMethodParams.klarna({required PaymentMethodData paymentMethodData})
const
factory
PaymentMethodParams.oxxo({required PaymentMethodData paymentMethodData})
const
factory
PaymentMethodParams.p24({required PaymentMethodData paymentMethodData})
Config parameters for P24 payment method.
const
factory
PaymentMethodParams.payPal({required PaymentMethodData paymentMethodData})
Paypal is in private beta make sure to request access at Stripe to try it out.
const
factory
PaymentMethodParams.revolutPay({required PaymentMethodData paymentMethodData})
Paypal is in private beta make sure to request access at Stripe to try it out.
const
factory
PaymentMethodParams.sepaDebit({required PaymentMethodDataSepa paymentMethodData})
const
factory
PaymentMethodParams.sofort({required PaymentMethodDataSofort paymentMethodData})
const
factory
PaymentMethodParams.usBankAccount({required PaymentMethodDataUsBank paymentMethodData})
const
factory

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 cashAppPay(_PaymentMethodParamsCashAppPay 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 revolutPay(_PaymentMethodParamsRevolutPay 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? cashAppPay(_PaymentMethodParamsCashAppPay 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? revolutPay(_PaymentMethodParamsRevolutPay 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 cashAppPay(_PaymentMethodParamsCashAppPay 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 revolutPay(_PaymentMethodParamsRevolutPay 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 cashAppPay(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 revolutPay(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 cashAppPay(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 revolutPay(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? cashAppPay(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? revolutPay(PaymentMethodData paymentMethodData)?, TResult? usBankAccount(PaymentMethodDataUsBank paymentMethodData)?}) → TResult?
inherited

Operators

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