Change available amount for refund on the Admin order page

Shopify Partner
28 0 5

Hi guys,


I created a payment app following this guide to add a new payment method to merchant's site. Now I have 2 questions relating to the custom Admin order page, I hope for your help.

For the refund, my situation is my payment method is only allow refund partially, not refund total amount and this refund available amount would be set by my payment app. (actually, Shopify allow partial refund and total amount refund)

1. How can I replace the default available amount for refund by my own available amount? Please see image below



2. After the refund get done (partial refund), I want to disable refund link/button. How can I do this?



I appreciate your help. Thanks

Replies 0 (0)