人人商城

bfb_pay.cfg.php 1.3KB

1234567891011121314151617181920212223242526272829303132
  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. final class sp_conf{
  7. static public $SP_NO;
  8. static public $SP_KEY_FILE;
  9. static public $LOG_FILE;
  10. const SP_PAY_RESULT_SUCCESS = 1;
  11. const SP_PAY_RESULT_WAITING = 2;
  12. const BFB_PAY_DIRECT_NO_LOGIN_URL = "https://www.baifubao.com/api/0/pay/0/direct";
  13. const BFB_PAY_DIRECT_LOGIN_URL = "https://www.baifubao.com/api/0/pay/0/direct/0";
  14. const BFB_PAY_WAP_DIRECT_URL = "https://www.baifubao.com/api/0/pay/0/wapdirect";
  15. const BFB_QUERY_ORDER_URL = "https://www.baifubao.com/api/0/query/0/pay_result_by_order_no";
  16. const BFB_QUERY_RETRY_TIME = 3;
  17. const BFB_PAY_RESULT_SUCCESS = 1;
  18. const BFB_NOTIFY_META = "<meta name=\"VIP_BFB_PAYMENT\" content=\"BAIFUBAO\">";
  19. const SIGN_METHOD_MD5 = 1;
  20. const SIGN_METHOD_SHA1 = 2;
  21. const BFB_PAY_INTERFACE_SERVICE_ID = 1;
  22. const BFB_QUERY_INTERFACE_SERVICE_ID = 11;
  23. const BFB_INTERFACE_VERSION = 2;
  24. const BFB_INTERFACE_ENCODING = 1;
  25. const BFB_INTERFACE_OUTPUT_FORMAT = 1;
  26. const BFB_INTERFACE_CURRENTCY = 1;
  27. }
  28. sp_conf::$LOG_FILE = IA_ROOT . '/data/logs/bfb_' . date('Ymd') . '.log';
  29. sp_conf::$SP_NO = $payment['mchid'];
  30. sp_conf::$SP_KEY_FILE = $payment['signkey'];