ShopPayConfiguration
class ShopPayConfiguration(val shopId: String, val billingAddressRequired: Boolean = true, val emailRequired: Boolean = true, val shippingAddressRequired: Boolean, val allowedShippingCountries: List<String>, val lineItems: List<PaymentSheet.ShopPayConfiguration.LineItem>, val shippingRates: List<PaymentSheet.ShopPayConfiguration.ShippingRate>) : Parcelable
Configuration related to Shop Pay, which only applies when using wallet buttons.
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.
shippingRates
A list of ShippingRate objects. The first shipping rate listed appears in the payment interface as the default option.
Constructors
Link copied to clipboard
constructor(shopId: String, billingAddressRequired: Boolean = true, emailRequired: Boolean = true, shippingAddressRequired: Boolean, allowedShippingCountries: List<String>, lineItems: List<PaymentSheet.ShopPayConfiguration.LineItem>, shippingRates: List<PaymentSheet.ShopPayConfiguration.ShippingRate>)
Types
Link copied to clipboard
Type used to describe DeliveryEstimates for shipping. See https://docs.stripe.com/js/elements_object/create_express_checkout_element#express_checkout_element_create-options-shippingRates-deliveryEstimate
Link copied to clipboard
A type used to describe a single item for in the Shop Pay wallet UI.
Link copied to clipboard
class ShippingRate(val id: String, val amount: Int, val displayName: String, val deliveryEstimate: PaymentSheet.ShopPayConfiguration.DeliveryEstimate?) : Parcelable
A shipping rate option.