|
@@ -409,7 +409,7 @@ class PaypalCycleNotify(View):
|
|
|
if not self.config_match_region(country_id):
|
|
|
return HttpResponse('Fail', status=500)
|
|
|
|
|
|
- order_qs.update(updTime=nowTime, trade_no=paypal_transaction_id)
|
|
|
+ order_qs.update(status=1, updTime=nowTime, trade_no=paypal_transaction_id)
|
|
|
PAY_LOGGER.info('PayPal周期扣款成功---更新交易id:{}'.format(paypal_transaction_id))
|
|
|
return HttpResponse('success')
|
|
|
else:
|
|
@@ -448,7 +448,7 @@ class PaypalCycleNotify(View):
|
|
|
# PayPal周期扣款首次扣款
|
|
|
if billing_agreement.agreement_details.cycles_completed == '0':
|
|
|
# 更新order表,paypal的商家交易号
|
|
|
- order_qs.update(updTime=nowTime, trade_no=paypal_transaction_id)
|
|
|
+ order_qs.update(status=1, updTime=nowTime, trade_no=paypal_transaction_id)
|
|
|
PAY_LOGGER.info('{} PayPal周期扣款首次扣款成功'.format(UID))
|
|
|
return HttpResponse('success')
|
|
|
|