#.suryamani

1 messages · Page 1 of 1 (latest)

nova raftBOT
tulip girder
#

👋 how may I help?

jagged prairie
#

I need to test stripe payment in local how will i do that?

tulip girder
#

Use test cards to validate your Stripe integration without moving real money. Test a variety of international scenarios, including successful and declined payments, card errors, disputes, and bank authentication. You can also test non-card payment methods and redirects.

jagged prairie
#

I'm using webhook event, I need to check that events

tulip girder
#

what exactly?

jagged prairie
#

If i try to subscribe enter card details and click subscribe but it need to fail how will i test it?

tulip girder
jagged prairie
#

the event is invoice.payment.failed

tulip girder
#

actually if you're just testing the webhook events

#

you can use the Stripe CLI to trigger certain events

jagged prairie
#

Can you explain breifly?

tulip girder
#

invoice.payment_failed is available

jagged prairie
#

How to hit the invoice.payment.failed event in local by Subscribe

tulip girder
#

first you need to install the Stripe CLI

#

then trigger the event with stripe trigger

jagged prairie
#

I'm install it by using cmd

#

Is any possible way to my question, I subscribe by entering card details and click subscribe that time payment need to fail and trigger the invoice.payment.failed

tulip girder
#

I just described how in my last messages

#

to forward the events to your local-hosted app

#

and run stripe trigger invoice.payment_failed

jagged prairie
#

I forward it my api Webhook Post method and give breakpoint to check it

#

I need to run stripe trigger invoice.payment_failed in my command prompt, I'm i right?

tulip girder
#

yes correct