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; }
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); }