Problem/Motivation

The refund action link is not available from the admin payment page, refundPayment function is added in the RazorpayRedirect class to make the refund amount but the refund link is not available in the order payment page.

Steps to reproduce

  1. Make order payment using Razorpay
  2. Go to order list
  3. Go to order payment detail page (i.e admin/commerce/orders/[order_id]/payments)

Attached Screenshot to highlight available action for the payment.

Proposed resolution

Make the refund link available from the order payment page.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

nileshdesai created an issue. See original summary.

nileshdesai’s picture

StatusFileSize
new41.85 KB
new1.99 KB

Refund payment support is also provided for the OffsitePaymentGatewayBase as well. We can implement SupportsRefundsInterface to achieve the refund feature.

Reference link: https://docs.drupalcommerce.org/commerce2/developer-guide/payments/creat...

Attaching a patch to get the refund action item on the order payment detail page.
Also, attached screenshot which shows the output that the refund link is available after using this patch.

nileshdesai’s picture

Status: Needs work » Needs review
nileshdesai’s picture

Assigned: nileshdesai » Unassigned