wendyanas / google-checkout-php-sample-code

Automatically exported from code.google.com/p/google-checkout-php-sample-code
0 stars 0 forks source link

SetZipPatterns() function doesn't set tax rate to multiple zip codes #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

    $tax_rule = new GoogleTaxRule("default", 0.08);
    $tax_rule->SetZipPatterns(array("94305", "10027"));
    $tax_table = new GoogleTaxTable("default");
    $tax_table->AddTaxRules($tax_rule);
    $cart->AddTaxTables($tax_table);

What is the expected output? What do you see instead?

    The tax rate 8% is specified for 94035 only. Tax in 10027 remains 0%.
Both zip codes should have 8% tax rate.

Original issue reported on code.google.com by jacob13moon@gmail.com on 10 Nov 2006 at 9:55

GoogleCodeExporter commented 8 years ago

Original comment by jacob13moon@gmail.com on 1 Dec 2006 at 8:03