Quellcode durchsuchen

palpay 支付问题

chenshibin vor 4 Jahren
Ursprung
Commit
5abad7d2e1
2 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen
  1. 1 1
      Ansjer/config_formal.py
  2. 4 4
      Controller/CloudStorage.py

+ 1 - 1
Ansjer/config_formal.py

@@ -17,7 +17,7 @@ SERVER_DOMAIN = 'http://www.dvema.com/'
 DOMAIN_HOST = 'www.dvema.com'
 SERVER_HOST = 'localhost'
 PAYPAL_CRD = {
-    "mode": "live",  # sandbox or live
+    "mode": "sandbox",  # sandbox or live
     "client_id": "AdSRd6WBn-qLl9OiQHQuNYTDFSx0ZX0RUttqa58au8bPzoGYQUrt8bc6591RmH8_pEAIPijdvVYSVXyI",
     "client_secret": "ENT-J08N3Fw0B0uAokg4RukljAwO9hFHPf8whE6-Dwd8oBWJO8AWMgpdTKpfB1pOy89t4bsFEzMWDowm"
 }

+ 4 - 4
Controller/CloudStorage.py

@@ -1094,10 +1094,10 @@ class CloudStorageView(View):
 
         orderID = CommonService.createOrderID()
         if pay_type == 1:
-            call_sub_url = "{SERVER_DOMAIN}cloudstorage/dopaypalcallback?orderID={orderID}". \
-                format(SERVER_DOMAIN=SERVER_DOMAIN, orderID=orderID)
-            # call_sub_url = "http://192.168.136.40:8077/cloudstorage/payExecute?orderID={orderID}".format(
-            #     SERVER_DOMAIN=SERVER_DOMAIN, orderID=orderID)
+            #call_sub_url = "{SERVER_DOMAIN}cloudstorage/dopaypalcallback?orderID={orderID}". \
+                #format(SERVER_DOMAIN=SERVER_DOMAIN, orderID=orderID)
+            call_sub_url = "http://binbin.uicp.vip/cloudstorage/payExecute?orderID={orderID}".format(
+                 SERVER_DOMAIN=SERVER_DOMAIN, orderID=orderID)
             call_clc_url = "{SERVER_DOMAIN}web/paid2/fail.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
             paypalrestsdk.configure(PAYPAL_CRD)
             payment = paypalrestsdk.Payment({