Skip to content

Commit

Permalink
An example of work with a discount is added (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
sofwar authored and srmklive committed Jun 20, 2018
1 parent fc7256b commit 45970bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,9 @@ foreach ($data['items'] as $item) {
}

$data['total'] = $total;

//give a discount of 10% of the order amount
$data['shipping_discount'] = round((10 / 100) * $total, 2);
```

* Next perform the remaining steps listed in [`SetExpressCheckout`](#usage-ec-setexpresscheckout).
Expand Down

0 comments on commit 45970bc

Please sign in to comment.