We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 54832d8 + 69ade04 commit 75bfd49Copy full SHA for 75bfd49
src/Messages/PurchaseRequest.php
@@ -93,6 +93,10 @@ public function getData()
93
$itemSummary = new \scpService_summaryData();
94
$itemSummary->description = $itemBagItem->getName();
95
$itemSummary->amountInMinorUnits = (int) round(100*$itemBagItem->getPrice()*$itemBagItem->getQuantity());
96
+ if($itemSummary->amountInMinorUnits==0){
97
+ // As per interface spec, skip 0 value lines.
98
+ continue;
99
+ }
100
$itemSummary->reference = $this->getReference();
101
102
$lgItemItemDetails = new \scpService_lgItemDetails();
0 commit comments