| Line 133... |
Line 133... |
| 133 |
for order in transaction.orders:
|
133 |
for order in transaction.orders:
|
| 134 |
order.status = OrderStatus.PAYMENT_FAILED
|
134 |
order.status = OrderStatus.PAYMENT_FAILED
|
| 135 |
elif new_status == TransactionStatus.IN_PROCESS:
|
135 |
elif new_status == TransactionStatus.IN_PROCESS:
|
| 136 |
for order in transaction.orders:
|
136 |
for order in transaction.orders:
|
| 137 |
order.status = OrderStatus.SUBMITTED_FOR_PROCESSING
|
137 |
order.status = OrderStatus.SUBMITTED_FOR_PROCESSING
|
| - |
|
138 |
order.statusDescription = "Submitted to warehouse"
|
| 138 |
#After we got payment success, we will set logistics info also
|
139 |
#After we got payment success, we will set logistics info also
|
| 139 |
logistics_client = LogisticsClient().get_client()
|
140 |
logistics_client = LogisticsClient().get_client()
|
| 140 |
#FIXME line item is only one now. If multiple will come, need to fix.
|
141 |
#FIXME line item is only one now. If multiple will come, need to fix.
|
| 141 |
item_id = order.lineitems[0].item_id
|
142 |
item_id = order.lineitems[0].item_id
|
| 142 |
logistics_info = logistics_client.getLogisticsInfo(order.customer_pincode, item_id)
|
143 |
logistics_info = logistics_client.getLogisticsInfo(order.customer_pincode, item_id)
|