Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paytm: Invalid Checksum Error #76

Open
Ulter52 opened this issue Mar 26, 2024 · 0 comments
Open

Paytm: Invalid Checksum Error #76

Ulter52 opened this issue Mar 26, 2024 · 0 comments

Comments

@Ulter52
Copy link

Ulter52 commented Mar 26, 2024

everytime payment is attempted this error causes payment failure on paytm.

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 110, in application
    response = frappe.api.handle(request)
  File "apps/frappe/frappe/api/__init__.py", line 49, in handle
    data = endpoint(**arguments)
  File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call
    return frappe.handler.handle()
  File "apps/frappe/frappe/handler.py", line 49, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "apps/frappe/frappe/__init__.py", line 1779, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
    return func(*args, **kwargs)
  File "apps/payments/payments/payment_gateways/doctype/paytm_settings/paytm_settings.py", line 130, in verify_transaction
    frappe.log_error(
  File "apps/frappe/frappe/utils/error.py", line 76, in log_error
    return error_log.insert(ignore_permissions=True)
  File "apps/frappe/frappe/model/document.py", line 290, in insert
    self._validate()
  File "apps/frappe/frappe/model/document.py", line 560, in _validate
    self._validate_length()
  File "apps/frappe/frappe/model/base_document.py", line 981, in _validate_length
    self.throw_length_exceeded_error(df, max_length, value)
  File "apps/frappe/frappe/model/base_document.py", line 1015, in throw_length_exceeded_error
    frappe.throw(
  File "apps/frappe/frappe/__init__.py", line 675, in throw
    msgprint(
  File "apps/frappe/frappe/__init__.py", line 640, in msgprint
    _raise_exception()
  File "apps/frappe/frappe/__init__.py", line 591, in _raise_exception
    raise exc
frappe.exceptions.CharacterLengthExceededError: Error Log 486a85703f: 'Title' (Order unsuccessful. Failed Response:{'ORDERID': '398722458a', 'MID': 'ugwLFc55837565297746', 'TXNAMOUNT': '100.00', 'CURRENCY': 'INR', 'STATUS': 'TXN_FAILURE', 'RESPCODE': '330', 'RESPMSG': 'Invalid checksum', 'BANKTXNID': ''}) will get truncated, as max characters allowed is 140
@Ulter52 Ulter52 changed the title Paytm: Character Length Exceeded Error Paytm: Invalid Checksum Error May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant