GitHub

DaffCartExpiredPaymentTokenError

import { DaffCartExpiredPaymentTokenError } from '@daffodil/cart/driver'

An error thrown when the payment token used for the payment method update has expired. This happens when the a place order request happens too long after payment update. The payment must be updated again before an order can be placed.

class DaffCartExpiredPaymentTokenError extends DaffInheritableError implements DaffError {
  readonly code: string = DaffCartDriverErrorCodes.EXPIRED_PAYMENT_METHOD
  message: string
}