#divya.shalini.ics

1 messages ยท Page 1 of 1 (latest)

golden galeBOT
proper wraith
#

Hi there

#

What command are you using and what error?

livid quail
#

Command for charge.failed

#

stripe trigger charge.failed --add charge:amount=56023 --add charge:destination=acct_1NTLucH4mk1HpBLH --add charge:customer=cus_OFrijEyps4axZI --override charge:payment_intent=pi_3NVxJyHdtz9jEBQS0gCo78fg --override charge:transfer_group=group_pi_3NVxJyHdtz9jEBQS0gCo78fg

proper wraith
#

What is the error?

livid quail
#

I want relate a payment_intent

#

It is giving this error

proper wraith
#

Gotcha, let me check

livid quail
#

Sure

proper wraith
#

Ah okay

#

Looks like that fixture needs to be updated

#

It currently uses the legacy /v1/charges API

#

So there is no PaymentIntent involved to override

#

I'll file feedback internally to get that updated

livid quail
#

Oh ok

#

Is there any way to test it?

#

from dashboard?

proper wraith
#

You can create a failed Charge using our test cards

golden galeBOT
livid quail
#

Oh ok. Let me explain

#

for transfer.reversed

#

If we login into the stripe dashboard

#

And go it Connect account detail page

#

Select a transfer

#

go into its detail page

#

If we click on this Reverse transfer button and do the rest, transfer.reversed will get triggered

#

Like this is there any way to do charge.failed?

faint plank
#

Just to clarify, you want to create a failed charge via the dashboard?

livid quail
#

Yes

faint plank
#

bismarck had to step out, so taking over

#

You can go to the payments page and create a payment with one of the test cards bismarck linked

livid quail
#

No worries, please tell me if any way?

faint plank
#

That's the only way

livid quail
#

Ok

#

This is payment created

faint plank
#

Yeah you need to capture the payment

#

See how it says Uncaptured?

livid quail
#

My requirement is to do it on uncaptured payments only

faint plank
#

That's not possible

#

You'd need to capture them to fail the payment

livid quail
#

Oh ok

#

Like this right?

faint plank
#

Yeah

#

But if you want payment to be declined, you need to use one of the test cards my colleague linked

livid quail
#

Ok

#

Let me try that

#

Is there any way to update exsting payment intent's payment method?

#

Creating one from stripe dashboard can not reflect in my application

faint plank
#

Have to do that before confirmation though

livid quail
#

Sure

#

Give me sometime

#

I am checking it

#

Please don't close thread

livid quail
#

Trying to update it through API

#

Getting this

#

So, Is this mean we can not change the payment method also?

faint plank
#

You already confirmed it

#

So you can't change the PM

livid quail
#

I created a intent from code but payment_intent.amount_capturable_updated also got triggered

faint plank
#

Yes that's expected

#

Once you confirm a payment intent the amount capturabel does update

livid quail
faint plank
#

In most flows, confirmation happens automatically

#

Looks like in yours too

golden galeBOT
livid quail
#

Creating a payment intent from stripe dashboard can't get captured in the application I am working on, I need something for update only

delicate scarab
#

๐Ÿ‘‹ hopping in here since codeneame_duchess has to head out soon

livid quail
#

No worries, please check above

delicate scarab
#

Reading back, it sounds like you're trying to create a failed payment intent

#

Are you trying to trigger a specific event? Can you give me specifics on what exactly you're trying to test?

livid quail
#

Sure

#

I am trying to trigger charge.expired event

#

Sorry charge.failed

#

I can't create a order against decline card from application

#

So I was thinking to update payment method of added payment intent

#

But unable to do so also

delicate scarab
#

Are you comfortable using the API to test this out?

#

alaso is there a reason you specifically need to test this with a manual capture payment?

delicate scarab
#

Earlier you were mentioning capturing the PaymentIntent, so I wasn't sure if you were doing that intentionally as part of your test or if it didn't really matter

#

And for this PaymentIntent are you trying to use it with a specific paymnet method or customer? or does that also not matter?

livid quail
#

No no, nothing specific

#

I just want to trigger charge.failed

#

Just that from our application there is already a restriction of declined payment cards

delicate scarab
#

Here's a quick example of how you'd do it in the CLI -

#

stripe payment_intents create --amount=2000 --currency=usd -d confirm=true -d payment_method=pm_card_visa_chargeDeclined

#

and that should trigger a charge.failed event

livid quail
#

Yes, It helped but not meeting the requirements

#

Can you also help me trigger charge.expired, just need it's request body?

delicate scarab
#

Ah, so you do need the capture