Skip to content

Commit

Permalink
Merge pull request #17 from highstrike/transaction_types
Browse files Browse the repository at this point in the history
Transaction Types and Gateway Methods as constants
  • Loading branch information
keith-chargeover authored Mar 31, 2022
2 parents 98b00aa + 0346cf3 commit 04610c4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ChargeOverAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ public function report($id, $filters = array(), $format = ChargeOverAPI::REPORT_
* @param integer $id
* @param string $action
* @param array $data
* @return array
* @return object
*/
public function action($type, $id, $action, $data = array())
{
Expand Down
16 changes: 14 additions & 2 deletions ChargeOverAPI/Object/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,17 @@

class ChargeOverAPI_Object_Transaction extends ChargeOverAPI_Object
{

}
const TYPE_PAYMENT = 'pay';
const TYPE_REFUND = 'ref';
const TYPE_CREDIT = 'cre';
const TYPE_SPLIT = 'spl';

const GATEWAY_METHOD_VISA = 'visa';
const GATEWAY_METHOD_MASTERCARD = 'mastercard';
const GATEWAY_METHOD_AMERICANEXPRESS = 'american-express';
const GATEWAY_METHOD_DISCOVER = 'discover';
const GATEWAY_METHOD_CHECK = 'check';
const GATEWAY_METHOD_PAYPAL = 'paypal';
const GATEWAY_METHOD_CREDIT = 'credit';
const GATEWAY_METHOD_ACH = 'ach';
}

0 comments on commit 04610c4

Please sign in to comment.