# Subscription with valid card that have invoice unpaid

**URL:** <https://developer.squareup.com/forums/t/subscription-with-valid-card-that-have-invoice-unpaid/4626>\
**Category:** Questions\
**Tags:** sandbox, subscriptions-api\
**Created:** [December 20, 2021, 1:31pm UTC](https://developer.squareup.com/forums/t/subscription-with-valid-card-that-have-invoice-unpaid/4626 "2021-12-20T13:31:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Radra](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@Radra](https://developer.squareup.com/forums/u/Radra)\
**Post date:** [December 20, 2021, 1:31pm UTC](https://developer.squareup.com/forums/t/subscription-with-valid-card-that-have-invoice-unpaid/4626/1 "2021-12-20T13:31:34Z")

</div>

I found the Sandbox Payments page where there are credit card listed for testing purposes.

But is there a way I can simulate in Sandbox a valid credit card that validates successfully but it does not have the necessary funds on it so it creates an Invoice with the status unpaid?

I want to test in Sandbox the creation of a new subscription with an invoice that has status unpaid to be able to test my applications code on how to handle the scenario.

---

<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:** [December 20, 2021, 4:47pm UTC](https://developer.squareup.com/forums/t/subscription-with-valid-card-that-have-invoice-unpaid/4626/2 "2021-12-20T16:47:43Z")

</div>

👋 Unfortunately there isn’t a test value that you can save to a customer profile that will simulate a decline for a subscription. We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team. 🙂
