config.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace refill\beirui_trd;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://106.15.45.70:9086/onlinepay.do';
  7. const QUERY_URL= 'http://106.15.45.70:9086/searchpay.do';
  8. const BALANCE_URL = 'http://106.15.45.70:9086/searchbalance.do';
  9. const USER_ID= '10002863';
  10. const KEY = 'dDb6mDMdEr5tcYprRCPKJpJXrGCnXSP4';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_beirui_trd.php";
  12. const operator = [
  13. mtopcard\ChinaMobileCard => 'yd',
  14. mtopcard\ChinaUnicomCard => 'lt',
  15. mtopcard\ChinaTelecomCard => 'dx'
  16. ];
  17. const ERR_NOS = [
  18. '5001', '5002', '5003', '5004', '5005', '5008', '5009', '5010', '5011', '5012', '7001'
  19. ];
  20. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;'];
  21. const ProductIdS = [
  22. mtopcard\ChinaMobileCard =>
  23. [
  24. 100 => '30000000910',
  25. 200 => '30000000911',
  26. ],
  27. mtopcard\ChinaUnicomCard =>
  28. [
  29. ],
  30. mtopcard\ChinaTelecomCard =>
  31. [
  32. ]
  33. ];
  34. }