Skip to content

Commit

Permalink
Update services.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Barukimang authored Apr 15, 2020
1 parent 451faca commit fc66539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpesa/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def get_access_token(self):

def _generate_password(self, timestamp):
string = self.shortcode + self.passphrase + timestamp
return bytes(string, 'utf-8')
return string.decode('utf-8')

def process_request(self, phone_number=None, amount=None,
callback_url=None, reference="", description=""):
Expand Down

0 comments on commit fc66539

Please sign in to comment.