#DaganChen

1 messages · Page 1 of 1 (latest)

hollow echoBOT
mild sun
#

I'm afraid it's not possible. stripe trigger payment_intent.payment_failed will create a new payment intent

full star
#

ummm

#

how Can I process a REAL senrio

#

meaning, I get a pending pi_ on us_bank_account
I intend to use that pi_ to find my db row
and update it to success

mild sun
#

Are you going to test successful or failed us_bank_account flow?

full star
#

yes

mild sun
#

With CLI, it can be done with following:

stripe trigger payment_intent.payment_failed --override "payment_intent:payment_method_types[]"=us_bank_account --override "payment_intent:payment_method"=pm_usBankAccount_accountClosed
full star
#

okay, that makes more sence

#

so I will get the same pi_ each time

mild sun
#

You will get different PI every time

full star
#

hold it

#

I'm creating a token, and I have pm_
charing it, getting pi_uniuqe with status pending

#

I need to send success or fail on that pi_ that is pending

#

I can override pi_ ?

mild sun
#

If you create the payment method first, then you can choose the account number for different scenarios, and it should change the PI status to corresponding outcome (fail or successful).

If you use Stripe CLI, it will create new Payment Intent with entire new flow for you to test the Webhook events. Stripe CLI is for Webhook testing purpose and not for changing the status of Payment Intent

#

I need to send success or fail on that pi_ that is pending
Can you share the Payment Intent that you intend to change, so that I can take a look how your integration works now?

full star
#

sure

#

but please understand something

#

i'm charging pm_ right?

#

the response has pi_ with status pending

#

the response if success or fails comes later (on live lets say 5 days)
on test, I want to check how it will work on the corresponding to that pi_

mild sun
#

Sharing the example PI will be helpful for me to check why the status doesn't get transited out of pending

full star
#

oh it runs directly after?

#

I did not know that

#

give me a few mintues before you go dipper

#

that is including us_bank_account or sepa_debit

mild sun