diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-02-21 10:51:53 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-02-21 10:51:53 +0700 |
| commit | 78e791eb0c0d28a02fd4417d5d0761066c271c86 (patch) | |
| tree | bb3e870c5357b9218f457a44dda22d2a18e8274a /indoteknik_api/controllers/api_v1/midtrans.py | |
| parent | 30548ae7462eebbf28ffad5398d0510541f462c0 (diff) | |
refactor function notification in midtrans, complicated with wati
Diffstat (limited to 'indoteknik_api/controllers/api_v1/midtrans.py')
| -rw-r--r-- | indoteknik_api/controllers/api_v1/midtrans.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_api/controllers/api_v1/midtrans.py b/indoteknik_api/controllers/api_v1/midtrans.py index fdc801d3..2adf3c50 100644 --- a/indoteknik_api/controllers/api_v1/midtrans.py +++ b/indoteknik_api/controllers/api_v1/midtrans.py @@ -8,7 +8,7 @@ class Midtrans(controller.Controller): prefix = '/api/v1/' @http.route(prefix + 'midtrans/notification', auth='none', type='json', csrf=False, cors='*', methods=['POST', 'OPTIONS']) - def notification(self, **kw): + def midtrans_notification(self, **kw): json_raw = json.loads(request.httprequest.data) trx_status = json.loads(request.httprequest.data)['transaction_status'] order_no = json.loads(request.httprequest.data)['order_id'] |
