Representable
public struct Representable : UIViewRepresentable
A SwiftUI representation of an STPPaymentCardTextField.
-
Initialize a SwiftUI representation of an STPPaymentCardTextField.
Declaration
Swift
public init(paymentMethodParams: Binding<STPPaymentMethodParams?>)
Parameters
paymentMethodParams
A binding to the payment card text field’s contents. The STPPaymentMethodParams will be
nil
if the payment card text field’s contents are invalid. -
Declaration
Swift
public func makeCoordinator() -> Coordinator
-
Declaration
Swift
public func makeUIView(context: Context) -> STPPaymentCardTextField
-
Declaration
Swift
public func updateUIView(_ paymentCardField: STPPaymentCardTextField, context: Context)
-
Declaration
Swift
public class Coordinator : NSObject, STPPaymentCardTextFieldDelegate