Last active
October 12, 2015 12:28
-
-
Save nukturnal/4027325 to your computer and use it in GitHub Desktop.
MPower PHP Checkout Invoice setup
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 | |
/* Adding items to your invoice is very basic, the parameters expected are | |
name_of_item, quantity, unit_price, total_price and optional item | |
description. */ | |
$invoice->addItem("13' Apple Retina 500 HDD",1,10.99,10.99); | |
$invoice->addItem("Case Logic laptop Bag",2,100.50,201,"Optional description"); | |
$invoice->addItem("Philips electric shaver",2,50.50,101.00); | |
/* You can optionally set a general invoice description text which can | |
be used in cases where your invoice does not need an items list or in cases | |
where you need to include some extra descriptive information to your invoice */ | |
$invoice->setDescription("Optional Invoice description here"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment