#susnet-checkout-company-tax
1 messages · Page 1 of 1 (latest)
It happens every time when I create checkout session for customer which has no billing details attached, there the VAT input field does not have a country selection, here is example id: cs_test_a15zMxCkbtO2XGuEjaxTO6soKaHA2vuCFDiHrAYE1NgNv5wm5nuhxL4gTw
The input placeholder suggest to add "PL" prefix but it accepts value without that prefix and as I sad 90% of users will not provide the prefix
This is another session id cs_test_a1TNHVTnY8NIEH8ZOemMO37yCDQZ0jY3jELrtAupR9Q7NbVWIYQh0narrS
Thank you, I wanted to collect details about how you're creating those sessions so I can test reproducing one and include that in my bug report.
I am creating session using .NET SDK with the following code:
public async Task<StripeCheckout.Session> CreateCheckoutSession(string customerId, string priceId, CancellationToken ct = default)
{
var options = new StripeCheckout.SessionCreateOptions
{
Mode = "subscription",
Customer = customerId,
CustomerUpdate = new StripeCheckout.SessionCustomerUpdateOptions
{
Name = "auto",
Address = "auto"
},
LineItems = new List<StripeCheckout.SessionLineItemOptions>
{
new StripeCheckout.SessionLineItemOptions
{
Price = priceId,
Quantity = 1,
},
},
SuccessUrl = $"{_settings.SuccessUrl}?session_id={{CHECKOUT_SESSION_ID}}",
CancelUrl = $"{_settings.CancelUrl}",
AutomaticTax = new StripeCheckout.SessionAutomaticTaxOptions { Enabled = true },
TaxIdCollection = new StripeCheckout.SessionTaxIdCollectionOptions { Enabled = true }
};
var service = new StripeCheckout.SessionService(_stripeClient);
StripeCheckout.Session session = await service.CreateAsync(options, null, ct);
_logger.LogInformation("Stripe checkout session created with id: {SessionId}", session.Id);
return session;
}
Thank you for those details, I'll work on attempting to reproduce shortly.
I've confirmed that I'm able to see the same behavior that you described.
Is this a problem with stripe or with my code?
I think it's on our side, but am still testing. So far I'm seeing better validation checks when I select other countries, so this may be specific to Poland.
Okay, thank you for help
I'm mostly technical, and am not as familiar with the appropriate convention for VAT numbers, but what I'm seeing so far from my web searches is that the 2-digit country code at the beginning of the number is expected to be part of the VAT ID.
On the international invoices for sure, but its common in Poland to provide only digits as VAT ID on the invoices thats why if your system will allow submitting without 2-digit country code on checkout there will be incorrect informations saved in stripe from polish customers
I'll file that feedback with our teams.