#fonikoagouriog_custom-webhook-payloads
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/1281284178763186374
๐ 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.
- fonikoagouriog_api, 2 days ago, 19 messages
Hi ๐
The payment_intent.succeeded webhook event will contain the Payment Intent object. Where are you collecting and storing the VAT ID in your integration?
We collect the VAT ID of a customer from the Stripe checkout
When you say Stripe checkout, do you mean Checkout Sessions?
https://docs.stripe.com/payments/checkout/how-checkout-works
yes we use the stripe-hosted checkout form
and we collect it there
with the "Purchase as a business" checkbox
In that case, you will want to retrieve it from the Checkout Session object
after the checkout, the VAT ID is stored correctly into our customer's details in Stripe
You can listen for the checkout.session.completed event
https://docs.stripe.com/api/events/types#event_types-checkout.session.completed and get it there
the issue that after that, we send a payment intent succeeded event to the invoicing platform that we use and the VAT ID is not sent with the payment intent.
are you suggesting we should swap the payment intent event with the checkout session completed?
Correct. It won't be
oh okay
When you say you "send an event", what do you mean? Stripe sends webook events to registered endpoints
Also, I misspoke, you will need to get the VAT ID from the Customer object
correct. we have an endpoint that is from our invoicing platform
and after a checkout we send a payment intent succeeded there
but it does not send the VAT ID of the customer along it
In that case you will need to retieve the customer and collect the tax ID data from the Customer object https://docs.stripe.com/api/customers/object#customer_object-tax_ids
You can then put that into the data payload you send.
hmm okay. so we can basically add
"customer_tax_ids": [
{
"type": "eu_vat",
"value": "XXXXXX"
}
]
to the payment intent payload?
is that the suggestion?
Well you are building your own payload, right? You can make it whatever you want.
that's what i am trying to figure out with my backend engineer atm. if we are building a custom payload. probably yes. ill try this solution and see what happens. thanks!
Sure thing, happy to help ๐
one final question before i go on trying it
how to i change the payment intent payload?
is it doable from the portal? silly question but i am asking so i can better communicate everything with my developers
I mean permanently change it to send also the customer object in its payload. Currently i have only found documentation for updating an existing payment intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
which is for a specific payment intent and not general for every payment intent created
No you cannot change the paylod we send. You could only build your own payload
so we cannot edit the payment intent succeeded
You cannot edit the webhook event payload that Stripe sends, correct. You can only edit each custom payload that you send.
ok got it
fonikoagouriog_transfer-reversal-insufficientbalance