Created
January 13, 2014 22:17
-
-
Save spinweb-dev/8409197 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class CustomCommerceTax { | |
$this->_aItems; | |
$this->_aShipping; | |
$this->_aCoupon; | |
public function __construct($aItems, $aShipping, $aCoupon) { | |
$this->_aItems = $aItems; | |
$this->_aShipping = $aShipping; | |
$this->_aCoupon = $aCoupon; | |
} | |
public function CalcluateTax() { | |
// API calls here | |
// Access shipping/coupon/items: $this->_aItems | |
} | |
public function EstimateTax() { | |
// API calls here | |
// Access shipping/coupon/items: $this->_aItems | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment