#divya.shalini.ics
1 messages ยท Page 1 of 1 (latest)
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
What is the error?
Gotcha, let me check
Sure
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
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?
Just to clarify, you want to create a failed charge via the dashboard?
Yes
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
No worries, please tell me if any way?
That's the only way
My requirement is to do it on uncaptured payments only
Yeah
But if you want payment to be declined, you need to use one of the test cards my colleague linked
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
Idk from the dashboard, but you can do it from api here: https://stripe.com/docs/api/payment_intents/update#update_payment_intent-payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Have to do that before confirmation though
Trying to update it through API
Getting this
So, Is this mean we can not change the payment method also?
I created a intent from code but payment_intent.amount_capturable_updated also got triggered
Yes that's expected
Once you confirm a payment intent the amount capturabel does update
May I know which confirmation you are referring here?
Recommend reading https://stripe.com/docs/payments/paymentintents/lifecycle to better understand how paymentintents work
In most flows, confirmation happens automatically
Looks like in yours too
If you want separate confirmation, you need to pass: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm false
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Creating a payment intent from stripe dashboard can't get captured in the application I am working on, I need something for update only
๐ hopping in here since codeneame_duchess has to head out soon
No worries, please check above
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?
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
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?
Yes please
May I know what it is?
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?
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
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
Yes, It helped but not meeting the requirements
Can you also help me trigger charge.expired, just need it's request body?
Ah, so you do need the capture