| Line 168... |
Line 168... |
| 168 |
order.statusDescription = "Payment Failed"
|
168 |
order.statusDescription = "Payment Failed"
|
| 169 |
elif new_status == TransactionStatus.AUTHORIZED:
|
169 |
elif new_status == TransactionStatus.AUTHORIZED:
|
| 170 |
for order in transaction.orders:
|
170 |
for order in transaction.orders:
|
| 171 |
order.status = OrderStatus.SUBMITTED_FOR_PROCESSING
|
171 |
order.status = OrderStatus.SUBMITTED_FOR_PROCESSING
|
| 172 |
order.statusDescription = "Submitted to warehouse"
|
172 |
order.statusDescription = "Submitted to warehouse"
|
| - |
|
173 |
order.cod = False
|
| 173 |
#After we got payment success, we will set logistics info also
|
174 |
#After we got payment success, we will set logistics info also
|
| 174 |
logistics_client = LogisticsClient().get_client()
|
175 |
logistics_client = LogisticsClient().get_client()
|
| 175 |
#FIXME line item is only one now. If multiple will come, need to fix.
|
176 |
#FIXME line item is only one now. If multiple will come, need to fix.
|
| 176 |
item_id = order.lineitems[0].item_id
|
177 |
item_id = order.lineitems[0].item_id
|
| 177 |
logistics_info = logistics_client.getLogisticsInfo(order.customer_pincode, item_id, DeliveryType.PREPAID)
|
178 |
logistics_info = logistics_client.getLogisticsInfo(order.customer_pincode, item_id, DeliveryType.PREPAID)
|