public async Task <OnlineDepositResponse> OnlineDeposit(OnlineDepositRequest request) { var settings = new AppSettings(); request.BrandId = _brandId; request.CultureCode = System.Threading.Thread.CurrentThread.CurrentUICulture.Name; request.NotifyUrl = settings.MemberWebsiteUrl + request.CultureCode + "/Home/OnlineDepositPayNotify"; request.ReturnUrl = settings.MemberWebsiteUrl + request.CultureCode + "/Home/OnlineDepositPayReceive"; return(await _memberApiProxy.OnlineDepositAsync(request)); }
public async Task WhenISubmitOnlineDepositRequest() { var result = await MemberApiProxy.OnlineDepositAsync(new OnlineDepositRequest { Amount = 200, BrandId = BrandId, CultureCode = "en-US", NotifyUrl = "http://membersite/notifyurl", ReturnUrl = "http://memebersite/returnurl" }); Set(OnlineDepositResponseKey, result); }