#papazov9_webhooks

1 messages ¡ Page 1 of 1 (latest)

patent gorgeBOT
#

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

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

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

halcyon crag
#

hi there!

#

how are you accepting payments? Checkout Session, Payment Element, Invoice, something else?

old lark
#

so i am using spring boot so how when the webhook payment_intent.succeed is catched from my endpoint to send to the customer the pdf invocie which i s paid

#

I am accepting them through invoice

#

do you wan tthe code?

halcyon crag
#

so you are first creating an Invoice object?

old lark
#

yes

#

and sending it to be paid via the active methods

#

to the contact email

halcyon crag
old lark
#

when the invocie is paid is the inovie pdf contained in the payload which is returned to the webhook

#

and what to use as a cast when getting the deserialzed object from the event

#

PaymentIntent paymentIntent = (PaymentIntent) event.getDataObjectDeserializer().getObject().orElse(null);
is this correct if we pay through inoivces

halcyon crag
#

I don't understand your question.

#

what exactly are you trying to do, and what is the issue?

old lark
#

lets say a customer just paid its inoice sent to his email

#

and now the webhook catched this succesful payment

#

how am i supposed to get the invoice pdf through this webhook so i can send it and say that the payment is succesful and send him the invoice

halcyon crag
old lark
#

hi, one last question

#

can you help me

#

InvoiceItemCreateParams invoiceItemParams =
InvoiceItemCreateParams.builder()
.setCustomer(stripeCustomerId)
.setPrice(subscription.getStripeProductId())
.setInvoice(invoice.getId())
.build();

when creating the invocie to send it to a customer to be paid i am sending this, but i do not have price id i have a product id from product catalog in stripe

#

where is supposed to be thi price id

halcyon crag
old lark
#

can i use the products from product catalog to set them as product data when creating a price or it is not working like this

halcyon crag
#

first your create a Product, then you create at least one Price for that Product. Then, when you create an Invoice Item, you set a specific Price ID (and not Product ID).

old lark
#

thank you

#

really appreciate your help

#

❤️