Skip to content

Commit

Permalink
Fix for PHP 5.5 and below
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Hall committed Nov 9, 2016
1 parent 10a8a6b commit e283805
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Objects/SimpleStripe.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

class SimpleStripe
{
private $paymentFormDirectory = __DIR__.'/../Resources/PaymentForms/';
private $paymentFormDirectory = null;

private $publishableKey = null;
private $secretKey = null;

public $currency = null;

public function __construct($publishableKey, $secretKey, $currency)
Expand All @@ -20,6 +20,8 @@ public function __construct($publishableKey, $secretKey, $currency)
$this->secretKey = $secretKey;
$this->currency = strtolower($currency);

$this->paymentFormDirectory = __DIR__.'/../Resources/PaymentForms/';

Stripe::setApiKey($this->secretKey);
Stripe::setAppInfo('SimpleStripe', '', 'https://github.com/rapidwebltd/SimpleStripe');
}
Expand Down

0 comments on commit e283805

Please sign in to comment.