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));
 }
Exemple #2
0
        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));
        }