#kevin_unexpected

1 messages ยท Page 1 of 1 (latest)

lusty oliveBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1215483370641821756

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

rigid lakeBOT
maiden lantern
visual ravine
#

searching

#

although im not sure which one it is

#

quick question

#

why am i receiving events for products with plans and products with no plans

#

how is a plan created?

maiden lantern
#

I need to view the request log in order to investigate.

#

Let me know once you have the request ID.

visual ravine
#

req_LU4DjIJaQqy0xQ

#

might be this one

maiden lantern
#

No, this isn't a subscription retrieval request

visual ravine
#

req_mV5ETVxQiKIkZ0

#

try this one

maiden lantern
#

No, this isn't a subscription retrieval request

visual ravine
#

how do i know what a subscription retrieval request is?

maiden lantern
visual ravine
#

we're using ruby to hit the ID

#

the retrieval ID doesn't come back to us....from what we ca tell

visual ravine
maiden lantern
#

Ok, Stripe doesn't log the GET response, but based on the event evt_1OrsWWGIehx05fPOYa08SHBv, I do see plan in the subscription object.

visual ravine
#

in the items, there's a plan for each item. but the subscription.plan is null

maiden lantern
#

I saw plan in the items list

visual ravine
#

we're talking about the plan attribute for the subscription

#

sometimes it's an object and sometimes it's null....we can't understand why

maiden lantern
#

Let me check the other subscription, you said you saw plan in sub_1Ors2VGIehx05fPONiBALFez right?

visual ravine
#

yes

maiden lantern
#

Ok, one different I notice so far is that sub_1OrsWWGIehx05fPOI5mksDBo has two prices whereas sub_1Ors2VGIehx05fPONiBALFez has only one.

visual ravine
#

correct

maiden lantern
#

Can you create another subscription with only once price and see if the resulting subscription has plan set ?

visual ravine
#

one sec

visual ravine
#

this one only has one product

#

can we assume if there's only 1 item, then the plan would be raised to subscription plan attribute

and if the the subscription has 2 products/prices, then the subscription plan attribute is null and that we'd need to look at the subscription items?

maiden lantern
#

It looks like so but I can't find any doc for me to 100% confirm it. Does your application have to rely on the plan attribute? any chance you can use the plan available in items ?