Describe the bug
When calling cancelPaymentIntent with a valid payment intent ID for a payment intent in the requiresCapture state, the SDK returns this response object:
{"error": {"code": "InvalidRequiredParameter", "message": "There is no associated paymentIntent with id pi_xxxxxxxxxx"}, "paymentIntent": undefined}
Before calling the cancel method the payment intent is visible in the Stripe dashboard (in test mode) and I am definitely passing the correct payment intent ID. The payment intent I am trying to cancel is in the requiresCapture state. Canceling a payment works for payments in the requiresPaymentMethod state.
To Reproduce
Steps to reproduce the behavior:
Create a payment intent, tap/swipe the card and proceed until the payment intent is in the requiresCapture state.
Attempt to cancel the payment intent by calling cancelPaymentIntent(...) with the payment intent ID.
Expected behavior
The payment intent is canceled.
Smartphone (please complete the following information):
Describe the bug When calling cancelPaymentIntent with a valid payment intent ID for a payment intent in the
requiresCapture
state, the SDK returns this response object:{"error": {"code": "InvalidRequiredParameter", "message": "There is no associated paymentIntent with id pi_xxxxxxxxxx"}, "paymentIntent": undefined}
Before calling the cancel method the payment intent is visible in the Stripe dashboard (in test mode) and I am definitely passing the correct payment intent ID. The payment intent I am trying to cancel is in the
requiresCapture
state. Canceling a payment works for payments in therequiresPaymentMethod
state.To Reproduce Steps to reproduce the behavior:
requiresCapture
state.Expected behavior The payment intent is canceled.
Smartphone (please complete the following information):