# PromptParameters

class PromptParameters(val mode: PromptMode = PromptMode.DEFAULT, val additionalPaymentMethods: List<AdditionalPaymentMethod.Type> = AdditionalPaymentMethod.allPaymentMethods)

Parameters for configuring the payment prompt UI. Includes:

## Constructors

PromptParameters
Link copied to clipboard
constructor(mode: PromptMode = PromptMode.DEFAULT, additionalPaymentMethods: List<AdditionalPaymentMethod.Type> = AdditionalPaymentMethod.allPaymentMethods)

## Properties

additionalPaymentMethods
Link copied to clipboard
val additionalPaymentMethods: List<AdditionalPaymentMethod.Type>

A list of additional payment methods that the buyer can use to pay, besides card payments. It's not guaranteed that the payment prompt will have these methods, but it's guaranteed that there will be no additional methods not in this list. These methods will be included in the PaymentHandle.additionalPaymentMethods. Default is all available payment methods - see AdditionalPaymentMethod.allPaymentMethods.

mode
Link copied to clipboard
val mode: PromptMode

The mode of the payment prompt UI. When set to PromptMode.DEFAULT, Mobile Payments SDK will immediately "take over" screen display (as another Android activity) to display a payment prompt screen. If set to PromptMode.CUSTOM, the developer's provided payment prompt screen will be displayed, and Mobile Payment SDK will "take over" screen display after the buyer has initiated a payment (e.g. inserting a card). Default is PromptMode.DEFAULT.