Example #1
0
 public CheckoutResponse GetStatus(long checkout_id)
 {
     var req = new CheckoutRequest { checkout_id = checkout_id };
     CheckoutResponse response;
     try
     {
         response = new WePayClient().Invoke<CheckoutRequest, CheckoutResponse>(req, req.actionUrl);
     }
     catch (WePayException ex)
     {
         response = new CheckoutResponse { state = ex.error, amount = 0, Error = ex };
     }
     return response;
 }
Example #2
0
        public CheckoutResponse GetStatus(long checkout_id)
        {
            var req = new CheckoutRequest {
                checkout_id = checkout_id
            };
            CheckoutResponse response;

            try
            {
                response = new WePayClient().Invoke <CheckoutRequest, CheckoutResponse>(req, req.actionUrl);
            }
            catch (WePayException ex)
            {
                response = new CheckoutResponse {
                    state = ex.error, amount = 0, Error = ex
                };
            }
            return(response);
        }