public override RefundResponse Refund(decimal amount, string transactionId)
        {
            RefundResponse         refundResponse     = new RefundResponse();
            MockWorldPayWebService worldPayWebService = new MockWorldPayWebService();

            string response = worldPayWebService.MakeRefund(amount, transactionId, AccountId, AccountPassword, ProductId);

            refundResponse.Message = response;

            if (response.Contains("A_Success"))
            {
                refundResponse.Success = true;
            }
            else
            {
                refundResponse.Success = false;
            }

            return(refundResponse);
        }
        public override RefundResponse Refund(decimal amount, string transactionId)
        {
            MockPayPalWebService payPalWebService = new MockPayPalWebService();
            RefundResponse       refundResponse   = new RefundResponse();

            string token = payPalWebService.ObtainToken(AccountName, Password);

            string response = payPalWebService.MakeRefund(amount, transactionId, token);

            refundResponse.Message = response;

            if (response.Contains("Auth"))
            {
                refundResponse.Success = true;
            }
            else
            {
                refundResponse.Success = false;
            }

            return(refundResponse);
        }