Details
Description
When voiding a Stripe payment, a refund is attempted. However, the refund fails to process because the gateway sets an 'amount' field to '0'. Stripe returns an error that the amount must be a 'positive integer'.
The Stripe::refundCc method should be updated to not send any amount if there is no amount. This will cause the entire amount to be refunded.
Additionally, the void shouldn't be successful if the refund failed. The methods ::voidCc and ::voidStoredCc should check the refundCc response for success before returning, and set Input errors on failure.
Activity
Tyson Phillips (Inactive)
created issue -
Tyson Phillips (Inactive)
made changes -
Field | Original Value | New Value |
---|---|---|
Assignee | Tyson Phillips [ tyson ] |
Tyson Phillips (Inactive)
made changes -
Fix Version/s | 4.0.0 [ 10603 ] | |
Fix Version/s | Short Term [ 10800 ] |
Automated transition triggered when Tyson Phillips (Inactive) created a branch in Stash -
Status | Open [ 1 ] | In Progress [ 3 ] |
Automated transition triggered when Tyson Phillips (Inactive) created pull request #2 in Stash -
Status | In Progress [ 3 ] | In Review [ 5 ] |
Resolution | Fixed [ 1 ] |
Automated transition triggered when Cody Phillips (Inactive) merged pull request #2 in Stash -
Status | In Review [ 5 ] | Closed [ 6 ] |