コード例 #1
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));
 }
コード例 #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));
        }