#enraged-camel_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1366909279545724938
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi! Can you share the Subscription ID with me please?
sub_Htx4iRnN1geEK3
Cool, thanks. Maybe I'm not sure what issue you're having - can you tell me more?
The subscription status is "unpaid"
I'm trying to get it to "active"
I added a coupon for 100% off, as a way to try to get it to do that
But that didn't work
Basically we have some features that only work when the subscription status is "active", so I'm trying to get to a stage where I can test them, without having to add a credit card to the account
It wouldn't, no. The status is unpaid because that's what your Dashboard settings say to do after payment failure.
To move the subscription to active, pay the most recent invoice before its due date.
Considering this is our staging environment... how would we "pay" an invoice
If I add a card it'll get charged $800, right?
I would truly hope your staging environment is not using livemode API keys ... ?
I mean, it is, because the goal of a staging environment for us is to be as close to prod settings as possible. Otherwise it's not much different than localhost
With other apps we can create separate workspaces for each environment we have, but Stripe as far as I know only has "test" and "live" modes
That's a violation of Stripe's ToS, and also, from the card networks' point of view, it's a big problem.
You can create as many Stripe accounts as you want. https://docs.stripe.com/sandboxes is also coming soon.
This guide outlines Stripe Sandboxes, an isolated test environment for safely testing Stripe functionality without affecting live data. It describes use cases such as simulating transactions without real money and managing isolated testing environments for teams. The guide also provides instructions for managing sandboxes in the Stripe Dashboard...
OK, if that's the case we can change it to use test mode keys. Sorry, had no idea about the ToS
You're not the first, and won't be the last - it happens. ๐
After we do that, I suppose we can just use a test card that starts with 4242 to get the subscription to active status
The more I think about it, the more I realize that doing so will just be easier across the board
You can use any of the test cards, ya.
In terms of solving the actual issue though, here's how you'd pay that invoice: https://docs.stripe.com/api/invoices/pay#pay_invoice-forgive