private static PurchaseResponse DoPurchase() { AddToCart.setShippingOptionInfoIfNeeded(); // ***** NOTE ******* // THIS WILL FAIL IF ITEM IS SHIPPABLE, WILL ENCOUNTER A NEEDINFO return(AddToCart.Purchase()); }
void TestGUI() { GUI.Box(new Rect(10, 10, 100, 90), "Loader Menu"); if (GUI.Button(new Rect(20, 40, 80, 20), "AddToCart")) { string itemID = "mu4wczjwheztkmdghaydgndemjsdmmruha4tsy3bmyywiytggzsdiojvgztgimld"; AddToCart.AddItemToCart(itemID); //AddToCart.GetCartResponse(auth.access_token); //AddToCart.GetOrderId(auth.access_token); AddToCart.Purchase(); //HttpWebResponse httpResponse = SendRequst(url,"POST",json); //Debug.Log(httpResponse.StatusCode); //Debug.Log(getResponseBody(httpResponse)); } }