#devangbhuva97-subscription
1 messages ยท Page 1 of 1 (latest)
Hi, which URL is that "Learn more"? I suppose this one? https://stripe.com/docs/invoicing/automatic-collection
yes @opal lily this one
Can I have the Invoice Id?
subscription id: sub_1LVs4tCScnf89tZo1IsMFlwU
last invoice id: in_1LVs7KCScnf89tZoKg5pBYEz
I created this subscription under acct_1Ihw53CScnf89tZo which is connected with our main platform account
I think your account has a warning/error that it's not eligible to Stripe yet
Maybe that's the reason automatic advancement is not disabled
Ok.. let me try another test account
Thanks @opal lily it's working in another test account acct_1JMYI1AjORjIkyJ0
but not getting webhook events from that account. Can you help me to debug that?
sure, can you say more. Like what's the ID of your main account, or the context of the webhook endpoint where you expected to see the event(like we_xxxx URL of the endpoint when looking at it in https://dashboard.stripe.com/test/webhooks would help for example)
account: acct_1Cbrx8FpU9DlKp7R
webhook url: https://webhook.site/0076dfae-6184-4e7d-9309-929e68d2f531
that account acct_1JMYI1AjORjIkyJ0 is only connected to you in live mode so you don't get test mode events from it
but how it's possible?
if it's not connected for test mode, then how can I perform any actions in test mode from our main account?
How to fix that issue?
historical quirks really, you can have a livemode connection via OAuth and do test mode requests but the events don't work
easiest way is to not, if you're testing stuff, use a testmode-only account, don't use testmode on a real account
otherwise, you can fix it by creating a test mode connection by going though https://stripe.com/docs/connect/oauth-standard-accounts with the owner of that account, using your development client_id
But we are giving both mode options to our end customers
And we saw that if we will connect our end customer using live mode oauth, indirectly we are getting access for test mode as well
and this is working in almost for all accounts except couple of like this
you must have manually done the test mode OAuth connection with those accounts then, as well as live
like I looked at acct_1Ihw53CScnf89tZo and it was connected in livemode on May 20 and testmode in May 30, so you probably did OAuth twice. Maybe someone at your company already asked about this quirk and learned that a testmode connection is needed and did that OAuth process again?
Yes.. that possible - acct_1Ihw53CScnf89tZo account is connected twice. Because that I'm using as testing.
let me give you real customer account details who are using both mode
I don't really need any more details, I think I've given you the answer
but happy to look if you want
Thanks @shy ridge but if you can help more - that would be great for us to clear some confusion
acct_19d70eAiXTXiSTir - this is real customer account
And I don't think - we are giving test mode oauth connection option to direct end customer...
So can you just confirm that - is this account connected for which mode?
Because this customer is able to doing transactions in both mode in our system
Test subscription: sub_1LFjfEAiXTXiSTirAwMlYCYA
Live subscription: sub_1LVIAbAiXTXiSTirbWBKx4my
that one's connected in live mode
that's a hard example for me to say anything about because that subscription hasn't done anything since June and we don't keep logs for webhook delivery for more than 15 days
So my doubt here is - we can perform any actions in both mode but won't get test mode webhook events if account is connected only for live mode
Right?
that's my understanding yes
here's a diagram my team mate made internally for this :p
thanks @shy ridge for sharing this with me
it does contradict me though I suppose so I might have misunderstood
I'm able to create invoice but not able to open
yeah again this is weirdness with live and test mode connections
we don't really intend for you to do things this way, you're supposed to only do livemode things with live accounts, and do test mode things with test mode accounts. I do agree it's a bug that the Invoice there is broken, it should work but there are multiple teams at Stripe (Invoicing and Connect) and they might not be aligned
what it comes down to is you're supposed to connect to an account in live mode and do livemode API request on it, and if you need to test, you either use test mode on your own account, or create test mode accounts or test mode connections to accounts explicitly for testing Connect use cases. Providing both live and test mode access to your end-users is poorly supported right now since it's not a use case we really think about.
like I do agree with you from my perspective this should all just work, but it's just not seen that way internally and we are moving away from OAuth and these concepts overall so this unfortunately falls into the scope of 'things we'd like to improve but can't prioritise'
Thanks @shy ridge for understanding our use-case & I really appreciate your time & efforts!
JFYI: Around 2-3 months ago, I reported this link broken issue only for test mode here & your team suggested us to contact support team for this. They were not able to help more due to some limitations. So we contacted stripe support team & after multiple conversions, we got final answer that it's resolved now!
Now I'm not able to understand - who will help in this?
Because now we have 2 issues
yep I mean there are bugs and that's how you report them. That screenshot talks about PaymentLinks though, not Invoices right?
I think.. both same
I mean I don't know, I have zero context on what interactions you had
we have two products, PaymentLinks and the Hosted Invoice Page, which are separate and owned by separate teams and can have separate bugss
ok, and that's the same issue as today
yess
just whatever support agent replied to you called it "payment links" to be confusing
when PaymentLinks is an actual product. oh well
cool, then you should just reply back really and tell them it broke again as something might have regressed!
sure.. we will reply back for this invoice broken link
& what about webhook events for test mode?
what about them? I explained the situation
it's not going to change, it's always been this way for years and we're unlikely to change anything
but as per your diagram, we should receive both.. right?
yep, so maybe I misunderstood
let's re-center. Please post an exact evt_xxx that happened on a connected account and you expected to see but didn't
please make sure it's a recent one(ideally, today). No other information, please, just get me the Event ID evt_xxx and I'll take it from there.
evt_1LVt48AjORjIkyJ0lk5aN7PX
you were using 20.120.0 recently
oops, wrong person
you only updated you webhook endpoint settings at 09 Aug 09:28 UTC to listen to invoice.paid
that event happened at 2022-08-12 08:17:59 UTC, so you weren't listening to that event type at the time.
So nothing to do with Connect or live/test mode quirks in that case.
ah no wait I can't read timestamps
ok, then I don't know!
ok ignore all that ^^
sorry I didn't get ๐
oh no wait
ok you did that get that event
it went you to your livemode endpoin
as said in the image I posted
you recieve test mode events from accounts you're connected to in livemode
but they go to your livemode endpoints, not your testmode ones, that's your confusion
it's covered in the image I posted above and also on https://stripe.com/docs/connect/webhooks
For Connect webhooks, itโs important to note that while only test webhooks will be sent to your development webhook URLs**, both live and test webhooks will be sent to your production webhook URLs. **This is due to the fact that you can perform both live and test transactions under a production application. For this reason, we recommend you check the livemode value when receiving an event webhook to know what action, if any, should be taken.
right