Skip to content

Commit

Permalink
add Pin Payments integration. #64
Browse files Browse the repository at this point in the history
  • Loading branch information
akDeveloper committed Mar 3, 2016
1 parent 7d0c79d commit 389bbb7
Show file tree
Hide file tree
Showing 4 changed files with 623 additions and 2 deletions.
14 changes: 12 additions & 2 deletions lib/AktiveMerchant/Billing/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,16 @@ abstract class Gateway

private $dispatcher;

public function __construct($options = array())
{
$options = new Options($options);

static::$default_currency = $options['currency']
?: static::$default_currency;

$this->options = $options;
}

public function money_format()
{
$class = get_class($this);
Expand Down Expand Up @@ -153,7 +163,7 @@ public function isTest()
}

/**
* Accepts the anount of money in base unit and returns cants or base unit
* Accepts the amount of money in base unit and returns cents or base unit
* amount according to the @see $money_format propery.
*
* @param $money The amount of money in base unit, not in cents.
Expand Down Expand Up @@ -305,7 +315,7 @@ protected function ssl_request($method, $endpoint, $data, array $options = array
/**
* Returns a unique identifier.
*
* @since Method available since Release 1.0.0
* @since Method available since Release 1.0.0
*
* @return string
*/
Expand Down
Loading

0 comments on commit 389bbb7

Please sign in to comment.