/// <summary> /// This method adds an instore-pickup shipping option to an order. /// </summary> /// <param name="Name">The name of the shipping method. This value will be /// displayed on the Google Checkout order review page.</param> /// <param name="Cost">The cost associated with the shipping method.</param> public void AddPickupShippingMethod(string Name, decimal Cost) { AutoGen.Pickup Method = new AutoGen.Pickup(); Method.name = Name; Method.price = new AutoGen.Money(); Method.price.currency = _Currency; Method.price.Value = Cost; AddNewShippingMethod(Method); }
/// <summary> /// This method adds an instore-pickup shipping option to an order. /// </summary> /// <param name="Name">The name of the shipping method. This value will be /// displayed on the Google Checkout order review page.</param> /// <param name="Cost">The cost associated with the shipping method.</param> public void AddPickupShippingMethod(string Name, decimal Cost) { Cost = Math.Round(Cost, 2); //no fractional cents AutoGen.Pickup Method = new AutoGen.Pickup(); Method.name = Name; Method.price = new AutoGen.PickupPrice(); Method.price.currency = _Currency; Method.price.Value = Cost; AddNewShippingMethod(Method); }