Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-2163

Stripe: Voiding transaction does not refund the payment

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0-b1
    • Component/s: Gateways
    • Labels:
      None

      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 Tyson Phillips (Inactive) created issue -
        tyson Tyson Phillips (Inactive) made changes -
        Field Original Value New Value
        Assignee Tyson Phillips [ tyson ]
        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 ]

          People

          • Assignee:
            tyson Tyson Phillips (Inactive)
            Reporter:
            tyson Tyson Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              15/Sep/16