address_id = $address_id; } function SetShippingDetails($name, $price, $money = "USD", $shippable = "true") { global $config; $this->shipping_name = $name; $this->ship_price = $price; $this->ship_currency = $config['defaultCurrency']; $this->shippable = $shippable; } function SetTaxDetails($amount, $currency = "USD") { global $config; $this->tax_amount = $amount; $this->tax_currency = $config['defaultCurrency']; } function AddCoupons($coupon) { $this->coupon_arr[] = $coupon; } function AddGiftCertificates($gift) { $this->giftcert_arr[] = $gift; } } /* This is a class used to return the results of coupons * that the buyer entered code for on the place order page */ class GoogleCoupons { var $coupon_valid; var $coupon_code; var $coupon_currency; var $coupon_amount; var $coupon_message; function googlecoupons($valid, $code, $amount, $currency, $message) { $this->coupon_valid = $valid; $this->coupon_code = $code; $this->coupon_currency = $currency; $this->coupon_amount = $amount; $this->coupon_message = $message; } } /* This is a class used to return the results of gift certificates * that the buyer entered code for on the place order page */ class GoogleGiftcerts { var $gift_valid; var $gift_code; var $gift_currency; var $gift_amount; var $gift_message; function googlegiftcerts($valid, $code, $amount, $currency, $message) { $this->gift_valid = $valid; $this->gift_code = $code; $this->gift_currency = $currency; $this->gift_amount = $amount; $this->gift_message = $message; } } ?>