I created a payment app following thisguide 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). So my questions are:
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?