Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
godfredtenkorang committed Oct 17, 2024
1 parent 1b23ecd commit c9aa3df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified ussd/__pycache__/views.cpython-312.pyc
Binary file not shown.
6 changes: 3 additions & 3 deletions ussd/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ def send_response(msg, msgtype=True):
# Create a unique transaction reference
reference = str(uuid.uuid4())

# amount_in_kobo = int(Decimal(amount)) # Convert to kobo
print(amount)
amount_in_kobo = int(Decimal(amount)) # Convert to kobo
print(amount_in_kobo)

payload = {
'email': email,
'amount': amount,
'amount': amount_in_kobo,
'currency': 'GHS', # Set appropriate currency
"ussd": {
"type": "ussd",
Expand Down

0 comments on commit c9aa3df

Please sign in to comment.