#_webhooks
1 messages ¡ Page 1 of 1 (latest)
đ 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.
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.
Im using the 28.2.0 stripe-java this is the event id evt_1Qcp1uRbBycmEg2icEvmPTnE
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
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?
seems reasonable to me yep; you can also use metadata on the CheckoutSession for that use case as well
How can i do that, the payment link needs to be crated from the stripe dashboard
well if you're using PaymentLinks(and not raw CheckoutSessions) then you can't, yes.
Is it possible to retrive a product and generate the link
not sure what you mean by that, can you expand?
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?
sure,
https://docs.stripe.com/api/products/list or https://docs.stripe.com/api/products/retrieve
then either create a Price or look one up for that Product https://docs.stripe.com/api/prices/list#list_prices-product
and then call https://docs.stripe.com/api/payment-link/create with the ID of the Price
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
https://docs.stripe.com/payments/checkout/pricing-table would be the closest built-in solution we have for that.
Ok, thanks for the help