mitodl / mitxonline

BSD 3-Clause "New" or "Revised" License
4 stars 2 forks source link

Stop sending Cybersource webhooks to MicroMasters RC #1082

Open sentry-io[bot] opened 2 years ago

sentry-io[bot] commented 2 years ago

Sentry Issue: MICROMASTERS-5ZT

ParseException: Reference number must start with MM-
  File "rest_framework/views.py", line 502, in dispatch
    response = handler(request, *args, **kwargs)
  File "ecommerce/views.py", line 158, in post
    order = get_new_order_by_reference_number(reference_number)
  File "ecommerce/api.py", line 278, in get_new_order_by_reference_number
    raise ParseException("Reference number must start with {}".format(REFERENCE_NUMBER_PREFIX))

An exception was intercepted by custom_exception_handler
rhysyngsun commented 2 years ago

I think the way to fix this would be to set up a cybersource developer profile that doesn't have webhooks setup and have engineers switch to that.