ass="del-code nl-40 ol-40">
- order_paid_success(order)
+ order.notify_msg = request.body
+ order.transaction_id = data.get('transaction_id', '')
+ order.save()
+
+ result_code = data.get('result_code', '')
+ if result_code == 'SUCCESS':
+ order_paid_success(order)
+ else:
+ order_paid_fail(order)
return HttpResponse(WXPAY_NOTIFY_SUCCESS)
@@ -31,6 +31,8 @@ pywe-miniapp==1.0.0 |
||
| 31 | 31 |
pywe-oauth==1.0.3 |
| 32 | 32 |
pywe-pay==1.0.5 |
| 33 | 33 |
pywe-response==1.0.1 |
| 34 |
+pywe-sign==1.0.5 |
|
| 35 |
+pywe-xml==1.0.0 |
|
| 34 | 36 |
qiniu==7.1.4 |
| 35 | 37 |
redis-extensions==1.0.50 |
| 36 | 38 |
requests==2.18.1 |