PaymentMethodParams.payPal constructor

  1. @JsonSerializable(explicitToJson: true)
  2. @FreezedUnionValue('PayPal')
const PaymentMethodParams.payPal({
  1. required PaymentMethodData paymentMethodData,
})

Paypal is in private beta make sure to request access at Stripe to try it out.

Implementation

@JsonSerializable(explicitToJson: true)
@FreezedUnionValue('PayPal')

/// Paypal is in private beta make sure to request access at Stripe to try it out.
const factory PaymentMethodParams.payPal({
  /// Paymentmethod data for this paymentmethod.
  ///
  /// Make sure to add an email and country (part of the address) in the
  /// billingdetails which is required for using Klarna.
  required PaymentMethodData paymentMethodData,
}) = _PaymentMethodParamsPayPal;