#javespi
1 messages ยท Page 1 of 1 (latest)
Exactly, and which different errors we can face
Specially the ones related with the payment method
Create intent โ
Confirm โ
Capture โ
This flow to be exactly
I don't think we have a test card for this unfortunately.
๐
Is there any documentation about which payment errors we could have when capture? Specially card/payment methods exceptions caused by bank or customer's card
Where are you expecting to see the errors?
When I trigger capture: https://stripe.com/docs/api/payment_intents/capture
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Returns an error if the PaymentIntent was not capturable or an invalid amount to capture was provided.
I see. You can try to remove the Payment Method from the PaymentIntent, but it might not allow you to capture the funds afterwards.
In short, there's no straightforward way to test that, unfortunately.
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
How can I remove a payment method from an intent?
['payment_method' => null] using update method?
I'm using PHP SDK
You passed an empty string for 'payment_method'. We assume empty values are an attempt to unset a parameter; however 'payment_method' cannot be unset. You should remove 'payment_method' from your request or supply a non-empty value. (Stripe\Exception\InvalidRequestException)
what is the use case?
I'm trying to test payment errors in my capture later use case
For now, I have covered different errors could happen when:
- Intent is created with capture method manual
- Intent is confirmed
But not when:
- Capture amount of the intent
Maybe im missing something, but after the payment intent confirm was OK, is there any card error or payment method error like: cvc, declined, insufficient funds, etc that could happen when capture?
I was trying to create intents with test payment methods to trigger these errors; but errors are triggered when I confirm, not when I capture
normally the error would happen on confirmation
Okey! And which errors could happen?
any type