#Nick-billing-cycle-anchor
1 messages Β· Page 1 of 1 (latest)
I can provide a bit more context.
Basically I'm trying to simulate this subscription having previously failed invoices: https://dashboard.stripe.com/test/subscriptions/sub_1LAEiwI67GP2qpb48YzGipXz
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
But because the card gets declined (which i intended to happen, I'm trying to test charging old unpaid invoices when a payment method changes)
https://dashboard.stripe.com/test/logs/req_i3umbqADuzXs67 I get a 402, and the adjustment of the anchor doesn't take effect
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Gotcha. Looking..
If I manually create an invoice through the Stripe dashboard, the desired result happens - the invoice is created, but the payment fails. However, I cannot attribute that invoice to the subscription
Hi π I'm stepping in for @primal valve gimme a sec to get caught up
Okay so you want to test the charging of unpaid invoices when a PM changes? I don't think changing the billing_cycle_anchor is the way to go here.
I'm just trying to generate some unpaid invoices for a subscription
In that case what I would recommend is to create a subscription with a successful PM. Update the PM to one of our Test cards that will fail. Then use Test clocks to step time forward and go through the normal subscription -> invoice behavior.
https://stripe.com/docs/testing#declined-payments
https://stripe.com/docs/billing/testing/test-clocks
Can I move an existing subscription/customer combo into a test clock simulation?
You canβt choose existing customers during test clock simulations. You can add up to three new customers to each simulation.