Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ad27549

Browse files
committed
Updated READNE to include example of moneyphp/money use.
1 parent 5d97587 commit ad27549

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,14 @@ $customer = new Model\Person(
220220

221221
$amount = Money\Amount::GBP()->withMinorUnit(999);
222222

223+
// Or better to use the moneyphp/money package:
224+
225+
use Money\Money as MoneyPhp;
226+
227+
$moneyphp_model = MoneyPhp::GBP(999);
228+
$amount = new Money\MoneyAmount($moneyphp_model);
229+
230+
223231
// We have a card to charge (we get the session key and captured the card identifier earlier).
224232
// See below for details of the various card request objects.
225233

0 commit comments

Comments
 (0)