PaymentIntentLastPaymentError
Details of the latest failed payment attempt. Present only when an attempt failed, so treat it as optional. For an asynchronous authorization, it can appear on a later retrieval of the PaymentIntent rather than on the confirm response. Show message to the customer, and use decline_code and advice_code to decide what to do next.
- typeType: enumrequired
The type of error returned.
values- api
_error The request could not be processed because of an internal Paypercut or upstream issue.
- card
_error A payment attempt failed because of card, issuer, network, or authentication behavior.
- idempotency
_error The request conflicts with an earlier request made with the same idempotency key.
- invalid
_request _error The request is malformed, contains invalid parameters, or cannot be processed in its current state.
- api
- codeType: string | nullmax length:5000
A short string identifying the error, such as
card_declined. - declineType: string | null
_code max length:5000For card errors resulting from an issuer decline, a short string indicating the issuer's reason if one is available.
- messageType: stringmax length:40000required
A customer-safe description of the failure that you can display directly.
- messageType: string | null
_code max length:5000Stable machine-readable localization key for
message. - adviceType: string | null
_code max length:5000A short string indicating how to proceed, such as
try_again_laterordo_not_try_again. Use it to decide whether to retry. - paramType: string | nullmax length:5000
If the error is parameter-specific, the parameter related to the error.
- networkType: string | null
_decline _code max length:5000For payments declined by the network, an alphanumeric code indicating the reason the payment failed.
- networkType: string | null
_advice _code max length:5000For card errors resulting from an issuer decline, a network-provided advice code when available.
- paymentType: enumnullable
_method _type Type of payment method that a Checkout Session can accept.
values- card
Card payments, including supported card-based wallets.
- blik
BLIK payments for eligible Polish zloty transactions.
- card

