CreateVirtualCardCheckoutData

@Serializable
data class CreateVirtualCardCheckoutData(val merchantOrderId: String, val merchantPublicKey: String, val amounts: Amounts, val billing: Address, val shipping: Address, val shippingMethod: String?, val items: List<Item>, val merchantUserId: String?, val userCohorts: List<String>) : Parcelable

The data needed to create a virtual card checkout. This data is passed into the CatchCheckoutController.createAndOpenVirtualCardCheckout method to have the Catch SDK create a virtual card checkout for the cart contents being purchased.

Constructors

Link copied to clipboard
constructor(merchantOrderId: String, merchantPublicKey: String, amounts: Amounts, billing: Address, shipping: Address, shippingMethod: String?, items: List<Item>, merchantUserId: String?, userCohorts: List<String>)

Properties

Link copied to clipboard

Contains details of the order total.

Link copied to clipboard

Contains details of the billing contact.

Link copied to clipboard

Contains details of the order's items.

Link copied to clipboard

The ID of this order in the merchant's system which Catch will store for shared identification purposes. This ID should be unique per order.

Link copied to clipboard

The merchant's public API key.

Link copied to clipboard

The ID of the consumer in the merchant's system which Catch will store for shared identification purposes. (While this field is required, the value null may be explicitly passed if the consumer is anonymous and doesn't have an ID. However, it is recommended to provide an ID wherever possible).

Link copied to clipboard

Contains details of the shipping contact.

Link copied to clipboard

The name of the shipping method (e.g., "express").

Link copied to clipboard

User cohorts that this checkout should be associated with.