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); return(refundResponse); }
public override RefundResponse Refund(decimal amount, string transactionId) { RefundResponse refundResponse = new RefundResponse(); MockPayPalWebService payPalWebService = new MockPayPalWebService(); string token = payPalWebService.ObtainToken(AccountName, Password); string response = payPalWebService.MakeRefund(amount, transactionId, token); refundResponse.Message = response; if (response.Contains("A_Success")) { refundResponse.Success = true; } else { refundResponse.Success = false; } return(refundResponse); }