Skip to content

Commit

Permalink
Add PayPal payment method
Browse files Browse the repository at this point in the history
  • Loading branch information
jimwins committed Nov 1, 2015
1 parent 7b8870f commit 0234373
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/txn-add-payment.php
Expand Up @@ -12,7 +12,7 @@

// validate method
if (!in_array($method,
array('cash','credit','square','stripe','dwolla','gift','check','discount','bad','donation','internal'))) {
array('cash','credit','square','stripe','dwolla','paypal','gift','check','discount','bad','donation','internal'))) {
die_jsonp("Invalid method specified.");
}

Expand Down
1 change: 1 addition & 0 deletions export/payments.php
Expand Up @@ -39,6 +39,7 @@
'gift' => array('21700', '11200'),
'check' => array('11160', '11200'),
'dwolla'=> array('11172', '11200'),
'paypal'=> array('11170', '11200'),
'discount'=>array('53000', '11200'),
'bad'=> array('61900', '11200'),
'donation'=>array('63150', '11200'),
Expand Down
2 changes: 2 additions & 0 deletions index.php
Expand Up @@ -247,6 +247,7 @@ function setActiveRow(row) {
square: "Square",
stripe: "Stripe",
dwolla: "Dwolla",
paypal: "PayPal",
gift: "Gift Card",
check: "Check",
discount: "Discount",
Expand Down Expand Up @@ -712,6 +713,7 @@ function (data) {
<button class="btn btn-default" data-value="square">Square</button>
<button class="btn btn-default" data-value="stripe">Stripe</button>
<button class="btn btn-default" data-value="dwolla">Dwolla</button>
<button class="btn btn-default" data-value="paypal">PayPal</button>
<button class="btn btn-default" data-value="cancel">Cancel</button>
</form>
<script>
Expand Down
1 change: 1 addition & 0 deletions print/invoice.php
Expand Up @@ -114,6 +114,7 @@
'square' => 'Square',
'stripe' => 'Stripe',
'dwolla' => 'Dwolla',
'paypal' => 'PayPal',
'gift' => 'Gift Card',
'check' => 'Check',
'discount' => 'Discount',
Expand Down
1 change: 1 addition & 0 deletions print/receipt.php
Expand Up @@ -114,6 +114,7 @@
'square' => 'Square',
'stripe' => 'Stripe',
'dwolla' => 'Dwolla',
'paypal' => 'PayPal',
'gift' => 'Gift Card',
'check' => 'Check',
'discount' => 'Discount',
Expand Down
3 changes: 3 additions & 0 deletions scat.php
Expand Up @@ -17,6 +17,8 @@

require dirname(__FILE__).'/lib/db.php';

require dirname(__FILE__).'/vendor/autoload.php';

define('APP_NAME', 'ScatPOS');
define('VERSION', '0.6.0');
define('EPS_ApplicationID', '984');
Expand Down Expand Up @@ -320,6 +322,7 @@ function expand_field($data, $class, $meta = null) {
'gift' => 'Gift Card',
'check' => 'Check',
'dwolla' => 'Dwolla',
'paypal' => 'PayPal',
'discount' => 'Discount',
'withdrawal' => 'Withdrawal',
'bad' => 'Bad Debt',
Expand Down

0 comments on commit 0234373

Please sign in to comment.