Skip to content

Commit

Permalink
Addfunds updated
Browse files Browse the repository at this point in the history
  • Loading branch information
hakanersu committed Feb 18, 2019
1 parent f230b36 commit 14a1f65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Api/Reseller.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ public function loginToken($id, $ip)
], 'GET', false);
}

public function addFunds($id, $amount, $description, $transactionType = 'credit', $transactionKey = false, $updateTotal = true)
public function addFunds($id, $amount, $description, $transactionType = 'receipt', $transactionKey = false, $updateTotal = true)
{
return $this->request('billing/add-reseller-fund.json', [
'reseller-id' => $id,
'amount' => $amount,
'description' => $description,
'transaction-type' => $transactionType,
'transaction-key' => $transactionKey ?? md5(uniqid($id, true)),
'transaction-key' => $transactionKey ?? md5(uniqid($id.time(), true)),
'update-total-receipt' => $updateTotal,
], 'POST', false);
}
Expand Down

0 comments on commit 14a1f65

Please sign in to comment.