config.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace refill\oufei;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'https://api2.ofpay.com/newOnlineOrder.do';
  7. const QUERY_URL= 'https://api2.ofpay.com/queryOrderInfo.do';
  8. const BALANCE_URL = 'https://api2.ofpay.com/newqueryuserinfo.do';
  9. const USER_ID = 'A230504001';
  10. const USER_PWS = '69D5C1C7B8C476A3';
  11. const KEY = '736E75E8BD6A943B';
  12. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_oufei.php";
  13. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  14. const ERR_NOS = [
  15. '1001', '1002', '1003', '1004', '1005', '1006', '1007', '1008', '319', '321', '331', '9998', '4001'
  16. ];
  17. const Product = [
  18. mtopcard\PetroChinaCard => [
  19. 50 => 64349107,
  20. 100 => 64349106,
  21. 200 => 64349105,
  22. 500 => 64349103,
  23. 1000 => 64349101,
  24. ],
  25. mtopcard\SinopecCard => [
  26. 50 => 64313605,
  27. 100 => 64157004,
  28. 200 => 64157003,
  29. 500 => 64157002,
  30. 1000 => 64157001,
  31. ],
  32. ];
  33. }