コード例 #1
0
ファイル: Account.cs プロジェクト: RoboCafaz/WePayASPNet
        public AccountCreateResponse Post(AccountCreateRequest req)
        {
            AccountCreateResponse response;
            try
            {
                response = new WePayClient().Invoke<AccountCreateRequest, AccountCreateResponse>(req, req.actionUrl, req.accessToken);
            }
            catch(WePayException ex)
            {
                response = new AccountCreateResponse { account_id=0, Error = ex };
            }

            return response;
        }
コード例 #2
0
        public AccountCreateResponse Post(AccountCreateRequest req)
        {
            AccountCreateResponse response;

            try
            {
                response = new WePayClient().Invoke <AccountCreateRequest, AccountCreateResponse>(req, req.actionUrl, req.accessToken);
            }
            catch (WePayException ex)
            {
                response = new AccountCreateResponse {
                    account_id = 0, Error = ex
                };
            }

            return(response);
        }