#xiaowo_webhooks

1 messages ยท Page 1 of 1 (latest)

autumn lichenBOT
#

๐Ÿ‘‹ 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/1284074704935718934

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

rain halo
#

Hi, let me help you with this.

#

What do you mean by "object filed is different"?

autumn lichenBOT
undone ridge
zinc shale
#

Hey! Taking over for my colleague. Let me catch up.

undone ridge
#

hey, can you understand my question?

zinc shale
#

No
Can you share more details ?

#

From what Stripe API reference you are getting these fields names ? periodEnd and periodStart, current_period_end and current_period_start ??

undone ridge
#

During the subscription webhook process, I tried to convert the resulting stripeObject to a Subscription object, but found that the conversion failed. The possible cause of my query error is that the field name returned by the webhook does not match the field name of the Subscription object. I would like to ask whether it is caused by the inconsistency of field names.โ€˜

#

at this line, errors show up.

zinc shale
#

You need to update your Model to the Subscription object

#

You need to update your Java Class to meet these attributes names. Or create a separate Class

undone ridge
#

but the Subscription Model is from java-sdk which version is 24.12.0

#

you means i should create a own Subscription model in my code ?

zinc shale
#

Can you share the event Id ?

undone ridge
#

evt_1PyUj0HiYvn8ZIkel0TJG9n8

zinc shale
#

Probably you have a version mismatch

zinc shale
undone ridge
#

Okay, thank you very much. I'll test it immedatly

#

Can I use version 24.12.0 in the live model to handle this webhooks?

#

hi, i changed my sdk version to 24.0.0, but the problem has also existed

#

please ingore latest message, maybe my fault, let check it again

#

i have changed my sdk version to 23.10.0, but the problem has also existed

#

@zinc shale

zinc shale
zinc shale
#

You need to cast it to an Invoice instead.

undone ridge
#

oh, i get it, i misunderstand the doc, I'll test it immedatly