#Divya.Shalini

1 messages · Page 1 of 1 (latest)

urban salmonBOT
pulsar cloak
#

👋 happy to help

#

you can trigger it using the Stripe CLI

minor creek
#

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

pulsar cloak
minor creek
#

Is there any else?

pulsar cloak
#

and use the Stripe Shell

#

stripe trigger charge.failed

minor creek
#

Like this correct?

#

If I want to send my custom request then may I know any command for this?

minor creek
#

Can we send this object with my values?

pulsar cloak
#

I'm not sure I understand which values are you talking about

minor creek
#

Let me explain

#

When I triggered the charge.failed command in CLI

#

I got this in my endpoint webhook

#

So here is request body

pulsar cloak
#

ok

minor creek
#

Can I send this as custom as in amount I could change, customer, connect account, etc?

pulsar cloak
#

yes

minor creek
#

Ok, let me check

#

Please don't close the thread

minor creek
#

Can we connect this fixture with existing charge id?

gleaming nymph
#

Hi! I'm taking over from my colleague. Please, give me a moment to catch up.

minor creek
#

Sure

gleaming nymph
#

I don't think so, in this case it creates a new one.

minor creek
#

Oh

#

But my requirement is to fail existing charge

#

Is there any way to do this?

gleaming nymph
#

Fixtures are designed to test events in isolation, and not modify existing objects.

minor creek
#

Ok, so there is no another way other than decline card right?

gleaming nymph
#

It's relatively straightforward, and also close to real-world scenario. What other way would you imagine?

minor creek
#

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

gleaming nymph
#

So, can you use this approach?