# Same payment request got GENERIC\_DECLINE several times and succeeded after retries

**URL:** <https://developer.squareup.com/forums/t/same-payment-request-got-generic-decline-several-times-and-succeeded-after-retries/14188>\
**Category:** Questions\
**Tags:** payments-api\
**Created:** [April 1, 2024, 10:40am UTC](https://developer.squareup.com/forums/t/same-payment-request-got-generic-decline-several-times-and-succeeded-after-retries/14188 "2024-04-01T10:40:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alfred](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Alfred](https://developer.squareup.com/forums/u/Alfred)\
**Post date:** [April 1, 2024, 10:40am UTC](https://developer.squareup.com/forums/t/same-payment-request-got-generic-decline-several-times-and-succeeded-after-retries/14188/1 "2024-04-01T10:40:03Z")

</div>

Dear Team,

For an order in production environment, we created the same Square payment request for it with the same card from customer (of course the requests are with different idempotency keys; besides, we created a new Square order for each payment request),  
it failed around 10 times (the customer just kept retrying), Square payment API POST /v2/payments returned GENERIC\_DECLINE, and succeeded finally, could you please help to check whether it failed at the beginning?

below is the info related to these payments, if any more info required, please let me know.  
Thanks.

```auto
application id: sq0idp-X5g7B-QAtnOvyEFik1fuSg
location id: LZ27X98TBHAZ0

below idempotency_key is for the last 2 failed payment
- 4bedd9c5-1732-4729-a8c2-2158dafe952a
- a6110b90-fdb3-423f-8349-23114fd8a53e

below idempotency_key is for the finally succeeded payment
- 54b75cd8-4fea-474b-ac66-41f0bc465750

```

Thanks and Best Regards,  
Alfred Luan

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [April 1, 2024, 10:40am UTC](https://developer.squareup.com/forums/t/same-payment-request-got-generic-decline-several-times-and-succeeded-after-retries/14188/2 "2024-04-01T10:40:17Z")

</div>

👋 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:

> **[Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency)**
>
> Learn about idempotency and how idempotency keys prevent negative results from accidental duplicate requests.

> **[Payments Requirements](https://developer.squareup.com/docs/app-marketplace/requirements/payments-api)**
>
> Learn about the payments requirements for getting your application approved for the App Marketplace.

> **Additional Documentation**
>
> [Payment API: Process Online and In-Person Payments](https://developer.squareup.com/docs/payments)  
> [Troubleshoot In-App Payments SDK Problems](https://developer.squareup.com/docs/in-app-payments-sdk/troubleshooting)  
> [Refund Payments](https://developer.squareup.com/docs/payments-api/refund-payments)

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.

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [April 1, 2024, 2:46pm UTC](https://developer.squareup.com/forums/t/same-payment-request-got-generic-decline-several-times-and-succeeded-after-retries/14188/3 "2024-04-01T14:46:06Z")

</div>

The error code `GENERIC_DECLINE` is returned when the card issuer declines the payment for an unknown reason. This error is usually out of Square’s control and is decided by the customer’s bank. The fact that the payment eventually succeeded suggests that the issue was temporary and was resolved by the bank.

It’s also important to note that each payment request should have a unique idempotency key. If you use the same idempotency key for different payment requests, you might get an error indicating that you used the idempotency key previously.

If the issue persists, it might be a good idea for the customer to contact their bank to understand why the transactions were initially declined.

_This answer was reviewed by @Bryan-Square._

---

<div class="post-metadata">

**Author:** ![Alfred](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Alfred](https://developer.squareup.com/forums/u/Alfred)\
**Post date:** [April 1, 2024, 3:17pm UTC](https://developer.squareup.com/forums/t/same-payment-request-got-generic-decline-several-times-and-succeeded-after-retries/14188/4 "2024-04-01T15:17:56Z")

</div>

Hi Bryan,

Thanks for reply, but could you please share a few more experience on this?  
such as, has this kind of failure → success ever happened before in any other applications? and would bank resolve this kind of issue actively, or it has to be the customer to contact the bank to resolve it?

For this case, is it possible to see any more details besides unknown reason in the response from bank to Square?

Thanks and Best Regards,  
Alfred Luan

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [April 1, 2024, 4:25pm UTC](https://developer.squareup.com/forums/t/same-payment-request-got-generic-decline-several-times-and-succeeded-after-retries/14188/5 "2024-04-01T16:25:19Z")

</div>

With **ALL** `GENERIC_DECLINE` errors the customer should first contact there bank to try and resolve the issue. 🙂
