#mattsulima

1 messages ยท Page 1 of 1 (latest)

exotic sleetBOT
slow seal
#

๐Ÿ‘‹ happy to help

inner ridge
#

Hey, thanks, I am checking test clocks right now, but it seems I am unable to load existing payments, I can create new ones only?

#

e.g. I created subscription yesterday, is there any way to test this subscription using test clocks?

#

I mean I need to test subscriptions I created using my api /app. So no new subscriptions I created after adding test clocks but subscriptions I already have

slow seal
#

you'd have to create a test clock then a new customer then a new subscirption

inner ridge
#

๐Ÿ˜ฆ

#

So it looks I am unable to test full flow from A-Z

slow seal
#

what went wrong?

inner ridge
#

Well I needed solution i am able to create all from code, then i can open dashboard, click subscription I am interested in and click "update time" or soemthing

#

Imo it's good idea to consider as new feature, in test mode to be able to use testclocks for existing subscriptions ๐Ÿ˜‰

#

hey @slow seal , I have other question. I created test clock and subscription. Then I set time and I am listening for webhook events. I am getting charge.succeded (great) but charge doesn't have metadata which usually subscription I am creating has. Any idea how to track payments then?

#

We discussed this few days ago, I am trackin charges and balance transactions and that's the data I need (+ metadata containing contract ID )

slow seal
inner ridge
#

So when user is charged I need to get contract, charge and new balance transaction and save it into our accounts balance

slow seal
#

and the event that we recommend you use is invoice.paid rather than charge.succeeded

inner ridge
#

Okay, I'll look into it then

#

Isn't invoice.paid event I need to track only? I want to track payment links, captures, refunds, disputes and everything what causes user is being charged or we return money

slow seal
slow seal
inner ridge
#

Okay thanks, I'll check this event, you re right, so far I totally ignored invoice.paid event

slow seal
#

let me know if you need any more help