Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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);
        }