Skip to content

Commit

Permalink
Removed hashing alg
Browse files Browse the repository at this point in the history
  • Loading branch information
ConfidenceYobo committed Aug 31, 2019
1 parent 14b13fb commit 39fe184
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion paystackpy/transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def initiate(self, source=None, amount=None, currency=None, reason=None, recipie
"currency": currency,
"reason": reason,
"recipient": recipient,
"reference": utils.reference_gen()
"reference": None
}

return self._handle_request('POST', url, payload)
Expand Down
14 changes: 0 additions & 14 deletions paystackpy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,3 @@ def validate_interval(interval):
if not interval:
raise InvalidDataError("Please provide a valid plan interval")
return interval


def reference_gen():
possibilities = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
token = ""
token_length = 12

for i in range(0, token_length):
math_random = random.random()
if math_random < 1:
math_random = random.uniform(0.1, 0.9)
token += possibilities[round(math_random * len(possibilities))]

return token

0 comments on commit 39fe184

Please sign in to comment.