PresentGooglePayParams constructor

  1. @JsonSerializable(explicitToJson: true)
const PresentGooglePayParams({
  1. required String clientSecret,
  2. @Default(false) bool forSetupIntent,
  3. String? currencyCode,
})

Implementation

@JsonSerializable(explicitToJson: true)
const factory PresentGooglePayParams({
  /// The client is secret is used for handling the payment from the Client side.
  required String clientSecret,

  /// Determines whether to present Google Pay in order to confirm a [SetupIntent]
  /// or a [PaymentIntent].
  @Default(false) bool forSetupIntent,

  /// When forSetupIntent is `true` it is required to provide a currencyCode.
  ///
  /// For more details see: https://developers.google.com/pay/api/android/reference/request-objects#TransactionInfo .
  String? currencyCode,
}) = _PresentGooglePayParams;