config.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace refill\oufei;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://apitest.ofpay.com/newOnlineOrder.do';
  7. const QUERY_URL= 'http://apitest.ofpay.com/queryOrderInfo.do';
  8. const BALANCE_URL = 'http://apitest.ofpay.com/newqueryuserinfo.do';
  9. const USER_ID = 'A08566';
  10. const USER_PWS = 'of111111';
  11. const KEY = 'OFCARD';
  12. // const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_oufei.php";
  13. const NOTIFY_URL = "https://www.xyzshops.cn/mobile/signature.php";
  14. const operator = [
  15. mtopcard\ChinaMobileCard => 1,
  16. mtopcard\ChinaUnicomCard => 2,
  17. mtopcard\ChinaTelecomCard => 3
  18. ];
  19. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  20. const ERR_NOS = [
  21. '1001', '1002', '1003', '1004', '1005', '1006', '1007', '1008', '319', '321', '331', '9998', '4001'
  22. ];
  23. const Product = [
  24. mtopcard\PetroChinaCard => [
  25. 200 => 64157003,
  26. ],
  27. mtopcard\SinopecCard => [
  28. 200 => 2000200,
  29. ],
  30. ];
  31. }