diff --git a/osinaweb/customercore/__pycache__/views.cpython-310.pyc b/osinaweb/customercore/__pycache__/views.cpython-310.pyc index 00afeca6..9742dd96 100644 Binary files a/osinaweb/customercore/__pycache__/views.cpython-310.pyc and b/osinaweb/customercore/__pycache__/views.cpython-310.pyc differ diff --git a/osinaweb/customercore/views.py b/osinaweb/customercore/views.py index 45c0a1d2..1e66c56b 100644 --- a/osinaweb/customercore/views.py +++ b/osinaweb/customercore/views.py @@ -331,6 +331,7 @@ def check_order_status(request, merchant_id, order_id): if order_item.item.item_type.name == 'OSIMENU': api_url = 'https://osimenu.com/api/create-subscription/' random_string = ''.join(random.choices(string.ascii_letters + string.digits, k=10)) + end_date_str = order_item.end_at.strftime('%Y-%m-%d') api_data = { 'user': { 'username': request.user.email, @@ -344,7 +345,7 @@ def check_order_status(request, merchant_id, order_id): }, 'subscription': { 'plan': order_item.item.title, - 'end_date': order_item.end_at + 'end_date': end_date_str } } response = requests.post(api_url, json=api_data)