Browse Source

vsees云存

peng 10 tháng trước cách đây
mục cha
commit
a00f2645ee
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Controller/PaymentCycle.py

+ 1 - 1
Controller/PaymentCycle.py

@@ -390,7 +390,7 @@ class PaypalCycleNotify(View):
             agreement_id = paypal_body.get('billing_agreement_id')
             paypal_transaction_id = paypal_body.get('id')
             amount = paypal_body.get('amount')
-            fee = paypal_body['transaction_fee']['value']
+            fee = paypal_body['transaction_fee'].get('value', 0)
             PaypalWebHookEventInsert = {
                 'webhook_event_id': json_obj.get('id'),
                 'resource_type': json_obj.get('resource_type'),