#Divya.Shalini
1 messages · Page 1 of 1 (latest)
Oh ok
May I know the scenario when I can be triggered we are doing other ways
Like I know one
I use to trigger when we using decline card
you can also go to https://stripe.com/docs
Is there any else?
Like this correct?
If I want to send my custom request then may I know any command for this?
what do you mean?
I mean in the charge .failed we have multiple request values. like below-
Can we send this object with my values?
I'm not sure I understand which values are you talking about
Let me explain
When I triggered the charge.failed command in CLI
I got this in my endpoint webhook
So here is request body
ok
Can I send this as custom as in amount I could change, customer, connect account, etc?
yes
this is the fixture https://github.com/stripe/stripe-cli/blob/master/pkg/fixtures/triggers/charge.failed.json
you can either use https://stripe.com/docs/cli/trigger#trigger-override
I am trying this one
Can we connect this fixture with existing charge id?
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
Sure
I don't think so, in this case it creates a new one.
Fixtures are designed to test events in isolation, and not modify existing objects.
You can instead try to use one of the test cards to fail the payment on your website in Test mode: https://stripe.com/docs/testing
Ok, so there is no another way other than decline card right?
It's relatively straightforward, and also close to real-world scenario. What other way would you imagine?
Yes, I agree. You are correct.
My task in this charge.failed is to check the details and send a mail to respective user
But I was not getting all the detail from decline card
For that reason I requested you to check
So, can you use this approach?