Builder

class Builder : ObjectBuilder<PaymentSessionConfig>

Functions

build
Link copied to clipboard
open override fun build(): PaymentSessionConfig
setAddPaymentMethodFooter
Link copied to clipboard
fun setAddPaymentMethodFooter(@LayoutRes() addPaymentMethodFooterLayoutId: Int): PaymentSessionConfig.Builder
setAllowedShippingCountryCodes
Link copied to clipboard
fun setAllowedShippingCountryCodes(allowedShippingCountryCodes: Set<String>): PaymentSessionConfig.Builder
setBillingAddressFields
Link copied to clipboard
fun setBillingAddressFields(billingAddressFields: BillingAddressFields): PaymentSessionConfig.Builder
setCanDeletePaymentMethods
Link copied to clipboard
fun setCanDeletePaymentMethods(canDeletePaymentMethods: Boolean): PaymentSessionConfig.Builder
setHiddenShippingInfoFields
Link copied to clipboard
fun setHiddenShippingInfoFields(vararg hiddenShippingInfoFields: ShippingInfoWidget.CustomizableShippingField): PaymentSessionConfig.Builder
setOptionalShippingInfoFields
Link copied to clipboard
fun setOptionalShippingInfoFields(vararg optionalShippingInfoFields: ShippingInfoWidget.CustomizableShippingField): PaymentSessionConfig.Builder
setPaymentMethodsFooter
Link copied to clipboard
fun setPaymentMethodsFooter(@LayoutRes() paymentMethodsFooterLayoutId: Int): PaymentSessionConfig.Builder
setPaymentMethodTypes
Link copied to clipboard
fun setPaymentMethodTypes(paymentMethodTypes: List<PaymentMethod.Type>): PaymentSessionConfig.Builder
setPrepopulatedShippingInfo
Link copied to clipboard
fun setPrepopulatedShippingInfo(shippingInfo: ShippingInformation?): PaymentSessionConfig.Builder
setShippingInfoRequired
Link copied to clipboard
fun setShippingInfoRequired(shippingInfoRequired: Boolean): PaymentSessionConfig.Builder
setShippingInformationValidator
Link copied to clipboard
setShippingMethodsFactory
Link copied to clipboard
setShippingMethodsRequired
Link copied to clipboard
fun setShippingMethodsRequired(shippingMethodsRequired: Boolean): PaymentSessionConfig.Builder
setShouldPrefetchCustomer
Link copied to clipboard
fun setShouldPrefetchCustomer(shouldPrefetchCustomer: Boolean): PaymentSessionConfig.Builder
setShouldShowGooglePay
Link copied to clipboard
fun setShouldShowGooglePay(shouldShowGooglePay: Boolean): PaymentSessionConfig.Builder
setWindowFlags
Link copied to clipboard
fun setWindowFlags(windowFlags: Int?): PaymentSessionConfig.Builder