Checkout
Elements methods
Get the Payment Element

checkout.getPaymentElement()

This method gets the previously created Payment Element instance, if it exists.

Returns

getPaymentElement() returns one of the following:

  • The Payment Element instance.
  • null, when no Payment Element has been created.
Get the Payment Element
1
var element = checkout.getPaymentElement();