__init.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * [WeEngine System] Copyright (c) 2014 WE7.CC
  4. * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
  5. */
  6. include_once IA_ROOT . '/payment/unionpay/upacp_sdk_php/utf8/func/log.class.php';
  7. define('SDK_CVN2_ENC', 0);
  8. define('SDK_DATE_ENC', 0);
  9. define('SDK_PAN_ENC', 0);
  10. define('SDK_FRONT_TRANS_URL', 'https://gateway.95516.com/gateway/api/frontTransReq.do');
  11. define('SDK_BACK_TRANS_URL', 'https://gateway.95516.com/gateway/api/backTransReq.do');
  12. define('SDK_BATCH_TRANS_URL', 'https://gateway.95516.com/gateway/api/batchTrans.do');
  13. define('SDK_SINGLE_QUERY_URL', 'https://gateway.95516.com/gateway/api/batchTrans.do');
  14. define('SDK_FILE_QUERY_URL', 'https://filedownload.95516.com/');
  15. define('SDK_Card_Request_Url', 'https://gateway.95516.com/gateway/api/cardTransReq.do');
  16. define('SDK_App_Request_Url', 'https://gateway.95516.com/gateway/api/appTransReq.do');
  17. define('SDK_FRONT_NOTIFY_URL', $_W['siteroot'] . 'pay.php');
  18. define('SDK_BACK_NOTIFY_URL', $_W['siteroot'] . 'notify.php');
  19. define('SDK_FILE_DOWN_PATH', 0);
  20. define('SDK_LOG_FILE_PATH', IA_ROOT . '/data/logs/');
  21. if (!empty($_W['config']['setting']['development'])) {
  22. define('SDK_LOG_LEVEL', PhpLog::INFO);
  23. } else {
  24. define('SDK_LOG_LEVEL', PhpLog::OFF);
  25. }
  26. if (!file_exists(IA_ROOT . '/attachment/unionpay/PM_'.$_W['uniacid'].'_acp.pfx')) {
  27. message('缺少支付证书,请联系管理员!');
  28. }
  29. define('SDK_SIGN_CERT_PATH', IA_ROOT . '/attachment/unionpay/PM_'.$_W['uniacid'].'_acp.pfx');
  30. define('SDK_SIGN_CERT_PWD', $payment['signcertpwd']);
  31. define('SDK_ENCRYPT_CERT_PATH', IA_ROOT . '/attachment/unionpay/encrypt.cer');
  32. define('SDK_VERIFY_CERT_DIR', IA_ROOT . '/attachment/unionpay/');
  33. define('SDK_VERIFY_CERT_PATH', IA_ROOT . '/attachment/unionpay/verify_sign_acp.cer');
  34. define('SDK_MERID', $payment['merid']);
  35. include_once IA_ROOT . '/payment/unionpay/upacp_sdk_php/utf8/func/common.php';
  36. include_once IA_ROOT . '/payment/unionpay/upacp_sdk_php/utf8/func/secureUtil.php';
  37. include_once IA_ROOT . '/payment/unionpay/upacp_sdk_php/utf8/func/PublicEncrypte.php';
  38. include_once IA_ROOT . '/payment/unionpay/upacp_sdk_php/utf8/func/PinBlock.php';