#fonikoagouriog_custom-webhook-payloads

1 messages ยท Page 1 of 1 (latest)

red terraceBOT
#

๐Ÿ‘‹ 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.

vast latch
#

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?

shy ether
#

yes we use the stripe-hosted checkout form

#

and we collect it there

#

with the "Purchase as a business" checkbox

vast latch
#

In that case, you will want to retrieve it from the Checkout Session object

shy ether
#

after the checkout, the VAT ID is stored correctly into our customer's details in Stripe

vast latch
shy ether
#

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?

vast latch
#

Correct. It won't be

shy ether
#

oh okay

vast latch
#

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

shy ether
#

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

vast latch
shy ether
#

hmm okay. so we can basically add
"customer_tax_ids": [
{
"type": "eu_vat",
"value": "XXXXXX"
}
]

#

to the payment intent payload?

#

is that the suggestion?

vast latch
#

Well you are building your own payload, right? You can make it whatever you want.

shy ether
#

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!

vast latch
#

Sure thing, happy to help ๐Ÿ™‚

shy ether
#

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

#

which is for a specific payment intent and not general for every payment intent created

vast latch
#

No you cannot change the paylod we send. You could only build your own payload

shy ether
#

so we cannot edit the payment intent succeeded

vast latch
#

You cannot edit the webhook event payload that Stripe sends, correct. You can only edit each custom payload that you send.

shy ether
#

ok got it

red terraceBOT
#

fonikoagouriog_transfer-reversal-insufficientbalance