Since switching to the new web SDK, card payment failures have increased

Since switching to the new web SDK, card payment failures have increased.Why is this?
It seems that the status is DEACTIVATED when it fails.
I am using the following library

https://web.squarecdn.com/v1/square.js

Subscription_id a86ea66e-9031-4c8a-b68e-a672fe473e70

:waving_hand: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Handling Errors
Take a Credit Card Payment
Troubleshoot In-App Payments SDK Problems

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

The Web Payments SDK performs client-side validation on card entry fields, such as improper credit card number length, wrong expiration date format, incomplete ZIP code, and non-credit card numbers. If credit card details are entered correctly but specific field values are wrong (like an invalid expiration date or card number), the card will still pass the client-side validation but fail when the payment is actually attempted.

In such cases, it’s important to handle these errors and display a user-friendly error message on the payment form if the payment attempt fails, asking the customer to re-enter the card details.

If a card payment fails, it could be due to various reasons such as insufficient funds, the card being expired, or the card being deactivated. The ‘DEACTIVATED’ status you’re seeing might be indicating that the card being used for the payment has been deactivated by the issuing bank.

It’s recommended to handle these errors gracefully and provide clear messaging to the user about the issue.

This answer was reviewed by @Bryan-Square.

Do you have the payment_id of a recent decline? :slight_smile:

What does it mean?
What is payment_id?

When a payment fails or is declined from the bank we will generate a payment object for that decline. Do you have the payment information for one of the payments that failed? :slight_smile:

The following subscriptions have failed to pay.

Subscription_id a86ea66e-9031-4c8a-b68e-a672fe473e70