public CheckoutCreateResponse Post(CheckoutCreateRequest req) { CheckoutCreateResponse response; try { response = new WePayClient().Invoke<CheckoutCreateRequest, CheckoutCreateResponse>(req, req.actionUrl,req.accessToken); } catch (WePayException ex) { response = new CheckoutCreateResponse { checkout_id = 0, checkout_uri =req.redirect_uri+"?error="+ex.error, Error =ex }; } return response; }
public CheckoutCreateResponse Post(CheckoutCreateRequest req) { CheckoutCreateResponse response; try { response = new WePayClient().Invoke <CheckoutCreateRequest, CheckoutCreateResponse>(req, req.actionUrl, req.accessToken); } catch (WePayException ex) { response = new CheckoutCreateResponse { checkout_id = 0, checkout_uri = req.redirect_uri + "?error=" + ex.error, Error = ex }; } return(response); }