solidusio/solidus

Payment log entries are not being saved for refunds

已關閉

#4,866 建立於 2023年1月23日

 (5 則留言) (0 個反應) (1 位負責人)Ruby (1,270 個分叉)batch import
good first issuetype:bug

倉庫指標

星標
 (4,804 顆星)
PR 合併指標
 (平均合併 6天 15小時) (30 天內合併 2 個 PR)

描述

Apparently, refunding a payment is not creating a payment log entry when executed.

Screenshot 2023-01-23 at 16 56 05@2x

☝️ In this example, the order has been cancelled, and a payment have been automatically refunded with the credit method on the payment method/gateway. This is not attaching the log entry event to the payment.

As you can see, the refund that is correctly created for the order, is linked to the original payment, so there's no apparent reason not to link the credit log entry event to the payment:

Screenshot 2023-01-23 at 16 59 41@2x

Solidus Version: All

To Reproduce

First of all bundle exec rake sandbox and bin/rails s

  1. Complete a payment on the frontend
  2. Go to admin, capture the payment of the newly created order
  3. Refund the payment.
  4. No log entry event for the refund.

Current behavior

No log entry event logged on the original payment for its refund.

Expected behavior

A log entry event logged on the original payment for its refund.

Screenshots

See above.

貢獻者指南