#_webhooks

1 messages ¡ Page 1 of 1 (latest)

fierce ruinBOT
#

👋 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/1324376750112899114

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

celest idol
#

hi! what's an Event ID evt_xxx where this happens?
what version of stripe-java is your project using?

usually the getDataObjectDeserializer returns null if the Event is not in the API version that the version of stripe-java supports.

patent willow
#

Im using the 28.2.0 stripe-java this is the event id evt_1Qcp1uRbBycmEg2icEvmPTnE

celest idol
#

that event is using 2022-11-15 so that's likely why you get null( that version of stripe-java on supports 2024-12-18.acacia ).
The way to fix this would be to pass -l to stripe listen I think. https://docs.stripe.com/cli/listen#listen-latest

patent willow
#

It works, thx. But is it a good idea to pass the discord user id as the client reference id to get the id of the user who's going to receive the roles?

celest idol
#

seems reasonable to me yep; you can also use metadata on the CheckoutSession for that use case as well

patent willow
#

How can i do that, the payment link needs to be crated from the stripe dashboard

celest idol
#

well if you're using PaymentLinks(and not raw CheckoutSessions) then you can't, yes.

patent willow
#

Is it possible to retrive a product and generate the link

celest idol
#

not sure what you mean by that, can you expand?

patent willow
#

Is there someway to create a product from the dashboard and then retrive it to generate a paymentlink with the metadata using the stripe java api?

celest idol
patent willow
#

and a last question, i tried to search this online but for some reason didn't find anything, how can i create a subscription checkout where it asks how often the user wants to renew their subscription, with option like monthly or annually

celest idol
patent willow
#

Ok, thanks for the help