UseePay Open API
UseePay Portal
Product Docs
  • V2.0
  • V1.0
Mechant Dashboard
UseePay Portal
Product Docs
  • V2.0
  • V1.0
Mechant Dashboard
  1. error code
  • Intergration
    • About Payment Methods
      • Card
      • Apple Pay
      • Google Pay
      • Klarna
      • Naver pay
      • Kakao Pay
      • Toss Pay
      • Payco
      • Affirm
    • subscription
      • Get started with Subscription
    • online payment
      • Get started with online payments
    • Payment Capabilities
      • Adaptive Price
  • developer
    • Introduction
    • Authentication
    • Errors
    • error code
      • last_payment_error documentation
    • Best Integration
      • Quickly create a paymentIntent for a subscription
      • Auto-Charge Subscription Guide
    • Payment Intents
      • Payment Intent Overview
      • Quickly create a paymentIntent
      • Create a PaymentIntent
      • Retrieve a PaymentIntent
      • Update a PaymentIntent
      • Confirm a PaymentIntent
      • Cancel a PaymentIntent
      • Capture a PaymentIntent
      • List all payment intents
    • Customers
      • Create a customer
      • Retrieves a customer
      • Update a customer
      • List all customers
    • Subscriptions
      • Create a subscription
      • Retrieves a subscription
      • Update a subscription
      • List all subscriptions
      • Cancel a subscription
    • Invoices
      • Create a invoice
      • Retrieves a invoice
      • List all invoices
      • Pay a invoice
    • Payment Methods
      • Create a payment method
      • Retrieves a payment method
      • Update a payment method
      • List all payment methods
    • Mandates
      • Create a mandate
      • Retrieves a mandate
      • List all mandates
    • Refunds
      • Create a refund
      • Retrieves a refund
      • List all refunds
    • Webhooks
      • Webhook events
      • Webhook Activation/Signature Verification Steps
      • Create a webhook
      • Retrieves a webhook
      • Update a webhook
      • List all webhooks
    • Embedded Checkout
      • Payment Elements
    • case
    • objects
    • About Testing
      • Test Cards
      • ApplePay&GooglePay
  • message
    • Messaging Element
  • FAQ
    • Unable to receive Webhook notifications
  1. error code

last_payment_error documentation

Overview#

The last_payment_error object contains detailed information about the most recent payment failure. It helps developers understand why a payment did not succeed and provides data to display user-friendly messages or handle errors programmatically.
last_payment_error.code is a short identifier for the type of error.
last_payment_error.decline_code is returned when the card issuer declines the payment and indicates the specific reason, if available. Not all card declines include a decline_code.
last_payment_error.message provides a human-readable description of the error.

Code Reference#

CodeDescription
system_errorSystem encountered an error
payment_intent_authentication_failed3D Secure authentication failed. User action required.
authentication_failed3D Secure authentication failed. User action required.
card_declinedThe card issuer declined the transaction.
payment_method_not_availableThe requested payment method or service is not enabled for the account.
reenter_transactionTransaction failed, please re-enter details or contact the issuer bank if issue persists.
processing_errorAn error occurred during card processing. Try again later or use a different payment method.
fraudulentPayment blocked by the payment provider’s risk control system.

Decline Code Reference#

Decline CodeDescription
insufficient_fundsThe card has insufficient funds to complete the payment.
lost_cardThe card has been reported lost.
stolen_cardThe card has been reported stolen.
expired_cardThe card has expired.
incorrect_cvcThe CVC code entered is incorrect.
restricted_cardThe card cannot be used for this type of transaction.
transaction_not_allowedThe card cannot be used for this transaction type.
card_velocity_exceededThe card has exceeded the allowed transaction frequency or volume.
pin_try_exceededToo many incorrect PIN attempts.
call_issuerThe cardholder should contact their bank.
do_not_honorThe transaction is declined for unspecified reasons.
fraudulentThe transaction was flagged as fraudulent by the issuer.
processing_errorAn error occurred while processing the card.

Usage Notes#

code provides a general classification of the payment failure for programmatic handling.
decline_code gives the issuer-specific reason for card declines, only available when provided by the bank.
Combine with last_payment_error.message to show user-friendly explanations.
Not all failed payments will have a decline_code; system or network errors usually only have code.
Modified at 2025-10-29 08:51:17
Previous
Errors
Next
Best Integration
Built with