Closed waiting-for-dev closed 1 year ago
Note that this is still available before having confirmed payment. updating the amount might be necessary in the case where
If this is not related, I'll create another issue
That is a fair point, @loicginoux. I meant manually changing the amount from the admin panel or the API. But yeah, we need to figure out the best way to handle that, and checking the payment status could be an option. Thanks for pointing that out!
@rainerdema to investigate if this is still valid.
I've opened a PR #288 that allows partial capture of a payment amount via the admin interface through the existing gateway action.
The example mentioned in the issue description refers to an update of the amount on a payment intent which is not allowed: But during the capture action, it's possible to specify a portion of the authorized payment amount to capture.
Let me know what you think 👍
cc @waiting-for-dev
I'm closing this with the mentioned PR for the moment. But happy to reconsider my approach and disallow the changing payment amount if needed 👍
Steps to reproduce
Result Solidus will show a captured payment with the updated amount. However, Stripe will have captured the old amount.
Expected result It should not be possible to update the amount of the authorized amount from Solidus. Stripe doesn't allow updating the amount for payment intents with the
requires_capture
status, which is the one we have after the authorization has been made.Considerations This is the error we get when trying: