#kronk
1 messages · Page 1 of 1 (latest)
One thing you could do is input invalid tax location data: https://stripe.com/docs/tax/customer-locations#finalizing-invoices-with-finalization-failures
But also you could use the cli and run "stripe trigger invoice.finalization_failed" to test
I saw this page too, but I wasn't able to input invalid tax location data through the Customer Portal UI 😦 I tried entering an invalid zip code for example but given the form validation wasn't able to submit the zip code. Is there something along the lines of address_full_match like they have for Connect account testing (https://stripe.com/docs/connect/testing#test-verification-addresses) that I could use in Test Mode?
Is there a way to customize the subscription a webhook event is triggered for through the CLI? I'm hoping to do an E2E test and with the CLI I've only been able to generate one-off seed data
Here's the list of failure reasons: https://stripe.com/docs/api/invoices/object#invoice_object-last_finalization_error-type. Looks like card_error is one. You can try providing an invalid card number that fails the Luhn checkhttps://stripe.com/docs/testing#invalid-data
When I input a card number that fails the Luhn check through the UI it similarly also throws a form validation error and I can't submit it
Wait you're using the customer portal?
yes
How are you attempting to finalize the invoices?
We have subscriptions set up to auto-bill, so Stripe is finalizing
Ah so you just want to update details ahead of the next invoice?
yup!
Oh well you could do this through the API then (not through the customer portal) since the portal has UI validation checks
gotcha, so there's no way to do it through the UI? was hoping to avoid having to go the API route 🥲
Unfortunately I think you'll have to go the API route if you're using Customer Portal
ah i see, thanks!