Universal Checkout simplifies the process of creating input views by introducing PrimerHeadlessUniversalCheckoutInputElement
as an abstraction. To leverage this functionality, you can easily generate input views using the PrimerInputTextField
, which is a direct subclass of a UITextField
and can be used as such. This property allows you to seamlessly connect your form with the Card components manager, streamlining the overall workflow.
1
var inputElements: [PrimerHeadlessUniversalCheckoutInputElement]
swift
copy
Parameters
paymentMethodTypeStringRequired
A unique string identifier for the payment method. Supported payment methods for current client session are returned in primerHeadlessUniversalCheckoutDidLoadAvailablePaymentMethods
.