PaymentSource

@Serializable
data class PaymentSource(source)

Represents a source of payment for a transaction.

This data class can encapsulate various payment methods such as CreditCard or GooglePay.

Constructors

Link copied to clipboard
constructor(paymentMethod: String? = null, creditCard: CreditCard? = null, googlePay: GooglePay? = null)

Public constructor to initialize a PaymentSource with the supported public payment methods.

Properties

Link copied to clipboard

The credit card details if this is a credit card payment.

Link copied to clipboard

The Google Pay details if this is a Google Pay payment.

Link copied to clipboard

The type of payment method (e.g., "CreditCard", "GooglePay").