#pinakinc

1 messages · Page 1 of 1 (latest)

final bloomBOT
weak spindle
#

Hi let's chat in this thread

#

Can you describe a little bit more about what's happening?

fickle haven
#

hi

#

I have created a subscription and attached a test clock

weak spindle
#

Ok and issue is you don't receive payment when you advance time?

fickle haven
#

yes

#

It says that upcoming payment is there

weak spindle
#

Can you paste the subscription id here so I can take a look?

fickle haven
#

sure

#

sub_1NBeOdSBRE7TRroRSH8tUvHq

weak spindle
#

That subscription and customer aren't associated with a test clock

fickle haven
#

I have attached a test clock to the customer

#

what am I doing wrong

#

How do I attach a test clock to a subscription

weak spindle
#

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

fickle haven
#

How do I update the subscription

#

when I click the customer, I get this page

weak spindle
#

You can't change the customer associated with a subscription

#

You'll need to create a new sub for the right customer

fickle haven
#

Let me create a new customer and then try again

#

My new customer

weak spindle
#

Doesn't look like you created it with a test clock

fickle haven
#

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

weak spindle
#

Yes

#

Read the guide I sent you previously

fickle haven
#

I tried doing that

#

but was not working

#

because it seems I can only attach test clock to a customer and not a subscription

weak spindle
#

Yeah that's how they work

#

They're added to the customer

#

Then any subscription under that customer will use a test clock

fickle haven
#

So I have the test clock attached to the customer

final bloomBOT
fickle haven
weak spindle
#

Yep that's the first step

#

Just follow the guide I linked

fickle haven
#

I tried everything...videos, guides etc

weak spindle
#

What isn't working

#

The guide I sent should work if you just follow the steps

fickle haven
#

recurring payment is not happening

weak spindle
#

You haven't created a subscription for that customer yet...

#

Look at your screenshot

#

No subscription under that customer

fickle haven
#

I have created

weak spindle
#

Not for that customer

#

It would show up

#

You need to explicitly pass the customer's id when creating the subscription

fickle haven
weak spindle
#

That's a completely different customer

#

Look at the id on the left

#

It was never created with a test clock

fickle haven
#

The subscription creation takes place in our application when we upgrade

weak spindle
#

They may have the same names

#

But they're different customer objects entirely

weak spindle
fickle haven
#

True but why is that so

weak spindle
#

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

fickle haven
#

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

weak spindle
#

Yeah

fickle haven
#

The customer and subscription are added in our application

#

ok will try

weak spindle
#

You're not passing the customer id with the test clock when you create the subscription

fickle haven
#

The subscription is created in our application and does not have cocept of test clock

#

Let me reach out to my app team

weak spindle
#

Just follow the guide

#

Test clocks are set at the customer level