ShopPayConfiguration

constructor(shopId: String, billingAddressRequired: Boolean = true, emailRequired: Boolean = true, shippingAddressRequired: Boolean, allowedShippingCountries: List<String>, lineItems: List<PaymentSheet.ShopPayConfiguration.LineItem>, shippingRates: List<PaymentSheet.ShopPayConfiguration.ShippingRate>)

Parameters

shopId

The corresponding store's shopId.

billingAddressRequired

Whether or not billing address is required. Defaults to true.

emailRequired

Whether or not email is required. Defaults to true.

shippingAddressRequired

Whether or not to collect the customer's shipping address.

lineItems

An array of LineItem objects. These are shown as line items in the payment interface, if line items are supported. You can represent discounts as negative amount LineItems.

shippingRates

A list of ShippingRate objects. The first shipping rate listed appears in the payment interface as the default option.