Skip to content

Commit 0ba61f0

Browse files
author
Andy Pieters
committed
Fallback if tax is not set, tax class will be hardcoded to 0
1 parent db7ab02 commit 0ba61f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Transaction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public static function start($options = array())
114114
if(isset($product['tax'])) {
115115
$taxClass = Helper::calculateTaxClass($product['price'], $product['tax']);
116116
} else {
117-
$taxClass = Helper::calculateTaxClass($product['price'], 0);
117+
$taxClass = 'N';
118118
}
119119

120120
$taxPercentage = null;

0 commit comments

Comments
 (0)