| Line 160... |
Line 160... |
| 160 |
transaction.status_message = description
|
160 |
transaction.status_message = description
|
| 161 |
if new_status == TransactionStatus.FAILED:
|
161 |
if new_status == TransactionStatus.FAILED:
|
| 162 |
for order in transaction.orders:
|
162 |
for order in transaction.orders:
|
| 163 |
order.status = OrderStatus.PAYMENT_FAILED
|
163 |
order.status = OrderStatus.PAYMENT_FAILED
|
| 164 |
order.statusDescription = "Payment Failed"
|
164 |
order.statusDescription = "Payment Failed"
|
| 165 |
elif new_status == TransactionStatus.IN_PROCESS:
|
165 |
elif new_status == TransactionStatus.IN_PROCESS or new_status == TransactionStatus.AUTHORIZED:
|
| 166 |
for order in transaction.orders:
|
166 |
for order in transaction.orders:
|
| 167 |
order.status = OrderStatus.SUBMITTED_FOR_PROCESSING
|
167 |
order.status = OrderStatus.SUBMITTED_FOR_PROCESSING
|
| 168 |
order.statusDescription = "Submitted to warehouse"
|
168 |
order.statusDescription = "Submitted to warehouse"
|
| 169 |
#After we got payment success, we will set logistics info also
|
169 |
#After we got payment success, we will set logistics info also
|
| 170 |
logistics_client = LogisticsClient().get_client()
|
170 |
logistics_client = LogisticsClient().get_client()
|