Skip to content

Commit 14a1f65

Browse files
committed
Addfunds updated
1 parent f230b36 commit 14a1f65

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Api/Reseller.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ public function loginToken($id, $ip)
1717
], 'GET', false);
1818
}
1919

20-
public function addFunds($id, $amount, $description, $transactionType = 'credit', $transactionKey = false, $updateTotal = true)
20+
public function addFunds($id, $amount, $description, $transactionType = 'receipt', $transactionKey = false, $updateTotal = true)
2121
{
2222
return $this->request('billing/add-reseller-fund.json', [
2323
'reseller-id' => $id,
2424
'amount' => $amount,
2525
'description' => $description,
2626
'transaction-type' => $transactionType,
27-
'transaction-key' => $transactionKey ?? md5(uniqid($id, true)),
27+
'transaction-key' => $transactionKey ?? md5(uniqid($id.time(), true)),
2828
'update-total-receipt' => $updateTotal,
2929
], 'POST', false);
3030
}

0 commit comments

Comments
 (0)