Commit 5b55596c authored by Birin Sanchez's avatar Birin Sanchez
Browse files

order_paid returns True when the order is in processing status

Signed-off-by: Birin Sanchez's avatarBirin Sanchez <>
parent dbd094c5
Pipeline #17187 passed with stage
in 31 seconds
......@@ -320,7 +320,8 @@ def order_paid(order_id):
woo = get_woo_connection()
query = 'orders/{}'.format(order_id)
order = woo.get(query).json()
if order and order['status'] == 'completed':
paid_statuses = ['completed', 'processing']
if order and order['status'] in paid_statuses:
return True
return False
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment