PrimerHeadlessMainComponent
implementation.
@Throws(SdkUninitializedException::class, UnsupportedPaymentMethodException::class)
fun <T : PrimerHeadlessMainComponent<out PrimerCollectableData, out PrimerHeadlessStep>> provide(paymentMethodType: String): T
Hide Parameters
Hide Type parameters
The type of the PrimerHeadlessMainComponent
implementation to
return.
Hide Supported types
Type | paymentMethodType |
---|---|
BanksComponent | ADYEN_IDEAL |
T
, which could be any of the following available components:
Hide Common API and available components
Show Common API
submit
function in order to process collected data and move component to next state.Hide Supported types
Show API
Show sealed interface BanksCollectableData
BanksStep
is a class holding different output data for specific steps. Whenever
start or submit methods are
called, componentStep
will trigger the next step in case the call to the mentioned method was successful.
Show sealed interface BanksStep
Hide Properties
PrimerValidationStatus
interface encompasses a range of validation statuses.Show sealed interface PrimerValidationStatus
Hide Properties
Hide Properties
Hide Properties
PrimerValidationError
objects that represent data validation errors emitted by this component.Hide Properties
PrimerError
that occurred during validation.Show PrimerValidationError
Hide Throws
paymentMethodType
- PrimerHeadlessMainComponent
combination.
Supported payment methods for current client session are returned
in onAvailablePaymentMethodsLoaded callback. See Supported types for the supported combinations.class CheckoutActivity : AppCompatActivity() {
// 👇 Add this
private val banksComponent by lazy {
PrimerHeadlessUniversalCheckoutComponentWithRedirectManager(viewModelStoreOwner = this)
.provide(paymentMethodType = "ADYEN_IDEAL")
}
}