const card = componentsManager.findComponent('card');

findComponent(componentType)
This method looks up a previously created PaymentUIComponent by its type.

Method Parameters

componentType required string, can be any of:

  • card
  • cardholderName
  • cardNumber
  • cardExpiry
  • cardCvc
  • cardPostalCode
  • applePay
  • googlePay
  • paypal

Returns

  • An instance of an PaymentUIComponent with a matching type, or
  • null, when no PaymentUIComponent with a matching type has been created.