# Subscription active but payment failed

**URL:** <https://developer.squareup.com/forums/t/subscription-active-but-payment-failed/19678>\
**Category:** Questions\
**Tags:** subscriptions-api, webhooks-api\
**Created:** [November 15, 2024, 3:42pm UTC](https://developer.squareup.com/forums/t/subscription-active-but-payment-failed/19678 "2024-11-15T15:42:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pascalf1324](https://avatars.discourse-cdn.com/v4/letter/p/f14d63/32.png) [@pascalf1324](https://developer.squareup.com/forums/u/pascalf1324)\
**Post date:** [November 15, 2024, 3:42pm UTC](https://developer.squareup.com/forums/t/subscription-active-but-payment-failed/19678/1 "2024-11-15T15:42:05Z")

</div>

Hello,  
I would like to ask a quick question.  
On my website, I allow users to subscribe to recurring plans.

I have also set up Webhooks. Everything works except for one thing I don’t understand.

So here is the problem:  
I would like to know why I receive these events:

“subscription.created” with a STATUS=ACTIVE

but, when I log into my Square dashboard, I see that the subscription is indeed active, but that there was a problem with the payment (either insufficient funds or other) and therefore Square was unable to proceed with the payment with the customer’s card.

So my question is, why do I receive the event on my webhook of “subscription.created” with a STATUS=ACTIVE.

Because in reality, the subscription should not be activated, because we have not received the payment!

Do I need to activate another webhook event to get this?

Thank you

---

<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:** [November 15, 2024, 3:42pm UTC](https://developer.squareup.com/forums/t/subscription-active-but-payment-failed/19678/2 "2024-11-15T15:42:24Z")

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

> **[Payments API Webhooks](https://developer.squareup.com/docs/payments-api/webhooks)**
>
> Learn about the Square webhook notifications supported by the Payments API.

> **[Gift Card Webhooks](https://developer.squareup.com/docs/gift-cards/webhooks)**
>
> Learn about Square Gift Cards API webhooks. You can subscribe to these webhook events to get notified when changes occur.

> **Additional Documentation**
>
> [Use Webhooks to Integrate with a Payroll System](https://developer.squareup.com/docs/labor-api/webhooks)  
> [Use Customer Webhooks](https://developer.squareup.com/docs/customers-api/use-the-api/customer-webhooks)  
> [Refunds API Webhooks](https://developer.squareup.com/docs/refunds-api/webhooks)

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:** ![pascalf1324](https://avatars.discourse-cdn.com/v4/letter/p/f14d63/32.png) [@pascalf1324](https://developer.squareup.com/forums/u/pascalf1324)\
**Post date:** [November 15, 2024, 4:23pm UTC](https://developer.squareup.com/forums/t/subscription-active-but-payment-failed/19678/3 "2024-11-15T16:23:31Z")

</div>

Sorry, that does not help !  
thanks

---

<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:** [November 15, 2024, 4:52pm UTC](https://developer.squareup.com/forums/t/subscription-active-but-payment-failed/19678/4 "2024-11-15T16:52:39Z")

</div>

The “subscription.created” webhook event is triggered when a subscription is created, regardless of the payment status. The status “ACTIVE” in this context means that the subscription has been successfully created and is active in the system, not that the payment has been successfully processed.

If there’s a problem with the payment, you should receive a separate webhook event, specifically “payment.updated”, which will indicate that the payment status has changed, for example, to ‘FAILED’ or ‘DECLINED’. This event is triggered when any field in a Payment is updated, such as when a payment fails due to insufficient funds.

So, in your case, you should listen for both “subscription.created” and “payment.updated” webhook events to accurately track the status of your subscriptions and their associated payments.

_This answer was reviewed by @Bryan-Square._

---

<div class="post-metadata">

**Author:** ![pascalf1324](https://avatars.discourse-cdn.com/v4/letter/p/f14d63/32.png) [@pascalf1324](https://developer.squareup.com/forums/u/pascalf1324)\
**Post date:** [November 15, 2024, 7:28pm UTC](https://developer.squareup.com/forums/t/subscription-active-but-payment-failed/19678/5 "2024-11-15T19:28:14Z")

</div>

Hi!

Fantastic 🙂  
Thanks a lot! I will test this! I just enabled this event “payment.updated”  
Thanks a lot! It is much appreciated!
