• Partnerships
  • Sign In
  • Sign In

Errors

  • AfterpayInvalidPaymentRequestError
  • AfterpayOnTokenizeListenerError
  • AfterpayRequestError
  • BrowserNotSupportedError
  • CashAppPayInvalidPaymentRequestError
  • CashAppPayInvalidShouldTokenizeError
  • CashAppPayMissingRedirectUrlError
  • ElementNotFoundError
  • FeatureDisabledError
  • InvalidCashAppPayOptionsFieldTypes
  • InvalidCashAppPayOptionsFieldValues
  • InvalidConfigurationPropertyError
  • InvalidConfigurationValueError
  • InvalidCurrencyFormatError
  • InvalidElementPresentError
  • InvalidElementTypeError
  • InvalidEventListenerCallbackError
  • InvalidFieldNameError
  • InvalidInputStylePropertyError
  • InvalidInputStyleSelectorError
  • InvalidInputStyleValueError
  • InvalidOptionError
  • InvalidPaymentRequestError
  • InvalidPaymentRequestUpdateError
  • PaymentMethodAlreadyAttachedError
  • PaymentMethodAlreadyDestroyedError
  • PaymentMethodMissingListener
  • PaymentMethodNotAttachedError
  • PaymentMethodUnsupportedError
  • PlaidMissingNameError
  • TokenizationError
  • UnexpectedError
  • VerifyBuyerError
  • WebSdkEmbedError

Web Payments SDK

#
PaymentMethodAlreadyDestroyedError

Exception thrown when a Payment Method instance is already destroyed.

Properties

Error thrown from

AfterpayClearpay.attachMessaging()

ApplePay.tokenize()

Card.addEventListener()

Card.clear()

Card.configure()

Card.detach()

Card.focus()

Card.recalculateSize()

Card.removeEventListener()

Card.setError()

Card.tokenize()

CashAppPay.attach()

CashAppPay.detach()

GiftCard.addEventListener()

GiftCard.attach()

GiftCard.clear()

GiftCard.configure()

GiftCard.detach()

GiftCard.focus()

GiftCard.removeEventListener()

GiftCard.setError()

GiftCard.tokenize()

GooglePay.detach()

GooglePay.tokenize()

Development
  • Guides
  • API Reference
  • API Explorer
  • GraphQL Explorer
  • SDKs
  • Sample apps
  • System status
Support
  • Developer forums
  • Contact support
  • Developer blog
  • Discord community
  • YouTube
  • X
More
  • Square Home
  • Square Developer
  • App Marketplace
  • Partner with Square
  • Solutions Partner Program
  • Pricing
  • Sales

© 2026 Square, Inc.

  • Developer terms of service
  • Developer Integration and Marketing Agreement
  • Privacy policy