PresentGooglePayParams constructor
- @JsonSerializable(explicitToJson: true)
const
PresentGooglePayParams(
{ - required String clientSecret,
- @Default(false) bool forSetupIntent,
- 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;