#Louie-invoice
1 messages · Page 1 of 1 (latest)
👋 Happy to help
You can use Decline after attaching test card here: https://stripe.com/docs/testing#declined-payments
Thank you I will look into it
Or you can use any declined test card listed above if the invoice collected payment method directly
Hi River, cuz I am looking for card number that are for testing cards after attach and stored as a payment method. but will failed when paying a invoice.
I see! Then Decline after attaching - 4000000000000341 will be the test card you're looking for
Hi River, I have created a webhook for capturing all invoice events. Are there any card number that can test the webhook event "invoice.payment_failed ".
If not how can I test it ?
Have you tried the test card number above?
Yes but it returns a 402 error in a invoice/invoiceId/pay POST API
Can you share the request ID (req_xxx)? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_o8nmohEtWIt28F
This is expected since the card is declined and invoice.payment_failed event is sent for this payment failure: https://dashboard.stripe.com/test/events/evt_1LQll8ESI16eL6va499gpAsU
Your Webhook server has accepted and acknowledged this invoice.payment_failed event
Sorry River, It's mistake from my end
No worries 😄