#maxwell
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
- maxwell, 3 hours ago, 3 messages
Hello! I'm not sure why Xero directed you to Stripe. We don't know which field would show up on their end. To clarify, you're asking about making VAT show up in Xero's system, right?
No, I want it to show up in Stripe, the next step is making it show up in XERO through your connection, but if you know how to make it show up in Stripe in the right place then I'm sure it would work
eg. we send it in metadata but metadata doesn't pull through to XERO
So how do we send Stripe the VAT for every payment in a way where it would that show in the payment rather than metadata
To get it to show up in Stripe you would either need to use Stripe Tax or add it in metadata.
What about webhooks?
What about them?
Can we use them...
For what?
Do you work at Stripe?
Yes.
What you're saying makes no sense. Webhooks allow Stripe to let your server know about async events that happen on our side. You seem to be asking how to use webhooks to update VAT info inside Stripe somehow, which isn't how webhooks work.
It's quite possible I'm not understanding, which is why I requested more details.
I want to help you, but in order to do that I need a lot more information.
Ok
So the issue is that I have a server generating payment requests with Stripe. Stripe is taking the payment but it is not recording the VAT details of that payment. Is there any way for stripe to record that detail without us having to use the Stripe Tax API? The reason is that we don't need the Tax API as it charges per calculation and we already have the calculation ready to send in
So you're calculating the VAT on your end and you're creating a Payment Intent on Stripe with the final, total amount only, right?
Yes
The answer would be to put the VAT details in the metadata of the Payment Intent.
There isn't any other place to put it.
Payment Intents are low-level payment objects that are only aware of the total amount.
Is there anyway once the metadata is in stripe, to take the VAT amount and put it into whatever field XERO reads? (You don't need to know the field I will try and find that out from XERO, just whether it is possible to have a script or something convert the metadata to the correct field)
I don't know. I don't know what fields Xero reads. But there is no way to move or copy the metadata outside of metadata.
Perhaps Xero requires you to specify a specific metadata key that they read?
Perhaps, I'll see if we can do it on the XERO side. If we use the Stripe Tax API, does that update the payment object I can see in my Stripe portal? eg.
{
"id": "pi_3OjBbKLOm4z6Mbsx1PdmdKth",
"object": "payment_intent",
"last_payment_error": null,
"livemode": true,
"next_action": null,
"status": "requires_capture",
"amount": 200,
"amount_capturable": 200,
"amount_details": {
"tip": {
}
},
"amount_received": 0,
"application": null,
"application_fee_amount": null,
"automatic_payment_methods": null,
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "manual",
"client_secret": "pi_3OjBbKLOm4z6Mbsx1PdmdKth_secret_0vLngt6B1RmX82DpVCgwshA3R",
"confirmation_method": "automatic",
"created": 1707790802,
"currency": "gbp",
"customer": "cus_P4oqwo4nT8m6VB",
"description": null,
"invoice": null,
"latest_charge": "ch_3OjBbKLOm4z6Mbsx1YVsVN86",
"metadata": {
},
"on_behalf_of": null,
"payment_method": "pm_1OGfFpLOm4z6MbsxcwfNu8OV",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
"installments": null,
"mandate_options": null,
"network": null,
"request_three_d_secure": "automatic"
}
},
"payment_method_types": [
"card"
],
"processing": null,
"receipt_email": null,
"review": null,
"setup_future_usage": null,
"shipping": null,
"source": null,
"statement_descriptor": null,
"statement_descriptor_suffix": null,
"transfer_data": null,
"transfer_group": null
}
Your core issue is that you want VAT info to show up in Xero, and I can't really help you with that because I don't know what Xero ingests on their end. I don't know if they look at Stripe metadata. I don't know if they're compatible with Stripe Tax. For answers to those questions you need to ask Xero.
Once you know for sure what Xero ingests we can then help you get that up and running. For example, if they need a specific metadata key with a specific value we can help you with the API request to make that happen.
But until you know exactly what Xero needs on their end we're just guessing.