#papazov9_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/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.
- papazov9_code, 2 hours ago, 10 messages
- papazov9_webhooks, 19 hours ago, 8 messages
- papazov9_code, 21 hours ago, 89 messages
- papazov9_webhooks, 6 days ago, 17 messages
hi there!
how are you accepting payments? Checkout Session, Payment Element, Invoice, something else?
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?
so you are first creating an Invoice object?
then you can get the invoice pdf here: https://docs.stripe.com/api/invoices/object#invoice_object-invoice_pdf
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
I don't understand your question.
what exactly are you trying to do, and what is the issue?
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
you don't have to write any code for this. there's a setting in the Stripe dashbord: https://dashboard.stripe.com/settings/billing/invoice
oteherwise you would send the user a link to https://docs.stripe.com/api/invoices/object#invoice_object-invoice_pdf
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
well, you have to create a Price first to get a Price ID: https://docs.stripe.com/api/prices/create
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
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).