Exemplo n.º 1
0
        public void ConfirmOrderReferenceApiCall()
        {
            ConfirmOrderReferenceRequest getRequestParameters = new ConfirmOrderReferenceRequest();

            getRequestParameters.WithAmazonOrderReferenceId(Session["amazonOrderReferenceId"].ToString());

            ConfirmOrderReferenceResponse confirmOrderReferenceResponse = client.ConfirmOrderReference(getRequestParameters);

            confirm.InnerHtml = confirmOrderReferenceResponse.GetJson();
        }
Exemplo n.º 2
0
        public ActionResult ConfirmOrder()
        {
            ConfirmOrderReferenceRequest getRequestParameters = new ConfirmOrderReferenceRequest();

            getRequestParameters.WithAmazonOrderReferenceId(Session["amazonOrderReferenceId"].ToString());
            var amazonOrderReferenceId = Session["amazonOrderReferenceId"].ToString();

            ConfirmOrderReferenceResponse confirmOrderReferenceResponse = client.ConfirmOrderReference(getRequestParameters);

            if (!confirmOrderReferenceResponse.GetSuccess())
            {
                apiResponse["confirmOrderReferenceResponse"] = "SetOrderReferenceDetails API call Failed" + Environment.NewLine + confirmOrderReferenceResponse.GetJson();
            }
            else
            {
                apiResponse["confirmOrderReferenceResponse"] = confirmOrderReferenceResponse.GetJson();
            }
            return(Json(apiResponse));
        }