#DaganChen
1 messages · Page 1 of 1 (latest)
I'm afraid it's not possible. stripe trigger payment_intent.payment_failed will create a new payment intent
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
Are you going to test successful or failed us_bank_account flow?
yes
If you want to test the failure flow, you can use the failed test account here: https://stripe.com/docs/payments/ach-debit/accept-a-payment?platform=web&ui=API#test-account-numbers
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
You will get different PI every time
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_ ?
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?
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_
Yup! If you use the test account number here: https://stripe.com/docs/payments/ach-debit/accept-a-payment?platform=web&ui=API#test-account-numbers, it will transit to success or failed after pending
Sharing the example PI will be helpful for me to check why the status doesn't get transited out of pending
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
The test account numbers are for us_bank_account. For sepa_debit, you can find its test account numbers here: https://stripe.com/docs/testing#non-card-payments