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

        There are no comments yet on this issue.

          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