#pinakinc
1 messages · Page 1 of 1 (latest)
Hi let's chat in this thread
Can you describe a little bit more about what's happening?
Ok and issue is you don't receive payment when you advance time?
Can you paste the subscription id here so I can take a look?
That subscription and customer aren't associated with a test clock
You'll need to follow these docs: https://stripe.com/docs/billing/testing/test-clocks?dashboard-or-api=api
I have attached a test clock to the customer
what am I doing wrong
How do I attach a test clock to a subscription
That's a different customer
You can see there are no subscriptions
The subscription would show in that list if it was the right customer
Make sure you pass the customer id when creating the subscription
You can't change the customer associated with a subscription
You'll need to create a new sub for the right customer
Doesn't look like you created it with a test clock
We are making use of Stripe
Ours is a proprietory product which makes api calls to stripe
so I created the customer and then a subscription from our application which gave a call to Stripe
I want to attach a test clock to this subscription
is it possible
Yes
Read the guide I sent you previously
I tried doing that
but was not working
because it seems I can only attach test clock to a customer and not a subscription
Yeah that's how they work
They're added to the customer
Then any subscription under that customer will use a test clock
I tried everything...videos, guides etc
recurring payment is not happening
You haven't created a subscription for that customer yet...
Look at your screenshot
No subscription under that customer
I have created
Not for that customer
It would show up
You need to explicitly pass the customer's id when creating the subscription
That's a completely different customer
Look at the id on the left
It was never created with a test clock
The subscription creation takes place in our application when we upgrade
See how this doesn't have a test clock at the top?
True but why is that so
Because you didn't create it with a test clock...
Like you did the other one
Under the details pane on the left you can see the customer id
It's different from the one where you did create a test clock
I dont have a test clock in our application
I am attaching it later in stripe
just to simulate advancing one month
Am I missing something here
Yeah
Please just follow the guide I sent: https://stripe.com/docs/billing/testing/test-clocks?dashboard-or-api=api#setup-simulation
You're not passing the customer id with the test clock when you create the subscription