public RestHttpActionResult<PaymentProcessorErrorResponse> GetStripeResult() { var stripeError = new PaymentProcessorErrorResponse { Error = new PaymentProcessorError { DeclineCode = DeclineCode, Code = Code, Message = DetailMessage, Type = Type, Param = Param, GlobalMessage = GlobalMessage } }; return (RestHttpActionResult<PaymentProcessorErrorResponse>.WithStatus(StatusCode, stripeError)); }
public RestHttpActionResult <PaymentProcessorErrorResponse> GetStripeResult() { var stripeError = new PaymentProcessorErrorResponse { Error = new PaymentProcessorError { DeclineCode = DeclineCode, Code = Code, Message = DetailMessage, Type = Type, Param = Param, GlobalMessage = GlobalMessage } }; return(RestHttpActionResult <PaymentProcessorErrorResponse> .WithStatus(StatusCode, stripeError)); }