Skip to content

Commit

Permalink
Extract .env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah committed Jan 28, 2017
1 parent f5653f1 commit bef39fb
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
MONEYWAVE_PUBLIC_KEY=
MONEYWAVE_SECRET_KEY=
MONEYWAVE_WALLET_PASSWORD=
MONEYWAVE_BASE_URL=https://moneywave.herokuapp.com
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ $mw = new Moneywave();
$tran = new WalletToAccountTransaction($mw);
//set details
$tran->lock = "hgot6574kik";
$tran->amount = 25000;
$tran->bankcode = Bank::STERLING;
$tran->accountNumber = "000056050";
Expand Down
1 change: 0 additions & 1 deletion src/Moneywave.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Moneywave;

use Dotenv\Dotenv;
use GuzzleHttp\Client;
use Moneywave\Exceptions\MoneywaveException;

Expand Down
2 changes: 1 addition & 1 deletion src/Transactions/BulkWalletToAccountTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function __construct(Moneywave $mw)
{
parent::__construct($mw);
$this->data = array(
"lock" => "",
"lock" => getenv("MONEYWAVE_WALLET_PASSWORD"),
"recipients" => array(
"amount" => "",
"bankcode" => "",
Expand Down
2 changes: 1 addition & 1 deletion src/Transactions/WalletToAccountTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function __construct(Moneywave $mw)
{
parent::__construct($mw);
$this->data = array(
"lock" => "",
"lock" => getenv("MONEYWAVE_WALLET_PASSWORD"),
"amount" => "",
"bankcode" => "",
"accountNumber" => "",
Expand Down

0 comments on commit bef39fb

Please sign in to comment.