emile 1 year ago
parent 6cf258957b
commit 040fc88d40

@ -224,6 +224,7 @@ def check_order_status(request, merchant_id, order_id):
due_date = order_item.purchased_at + timedelta(days=recurring_cycle)
order_item.due_at = due_date
order_item.save()
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))
api_data = {

Loading…
Cancel
Save