WooCommerce Pickup, Refund & Generate Payment link

Job ID: 40056787

Budget: ₹1,500 – ₹12,500 INR

I need a WooCommerce-compatible 3 features clean code snippets that add three very specific workflow tweaks to my current store (PhonePe gateway already in place).

1. Self Pickup at Checkout
When a shopper chooses “Self Pickup,” shipping must instantly drop to ₹0 and the order flag itself as “Self Pickup” so my staff can filter and fulfil it separately. No other behaviour change is required.

2. Partial-Quantity Refund Before Dispatch
Inside the admin order view I want to click into individual line items, reduce the quantity, and have WooCommerce trigger an automatic pro-rated refund through PhonePe. The customer must receive a polite email confirming the amount and quantity refunded, while the order notes log the action.

3. Automatic Balance-Due Payment Link
My store allows partial payments. The moment I mark an order “Ready,” the system should calculate the outstanding balance, generate a secure PhonePe payment link, and email it to the customer. Once they pay, the order status moves from “Partial Payment” to “Completed” with no manual reconciliation.

Acceptance criteria
• Works on the latest WooCommerce and WordPress versions without breaking core files.
• Respects existing tax calculations and PhonePe transaction IDs.
• All new statuses, emails, and notes are visible in the native WooCommerce order timeline.
• Clean, documented code so I can maintain it after delivery.

If you’ve built similar checkout customisations or refund automations, I’d love to see them. I’m ready to test on a staging site as soon as you deliver the plugin or patch files.