Adjusted the way the clientIp is obtained in PurchaseService->completePurchase