config.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace refill\chending_tax;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://39.101.178.136:8911/api/hf/order/submit';
  7. const QUERY_URL = 'http://39.101.178.136:8911/api/order/query';
  8. const BALANCE_URL = 'http://39.101.178.136:8911/api/account/balance';
  9. const APP_ID = '4kMv0XHVYd';
  10. const APP_SECRET = 'xhMDzkvrBtxaQKzL';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_chending_tax.php";
  12. const PRODUCT = [
  13. mtopcard\ChinaMobileCard => [
  14. 50 => 100644,
  15. 100 => 100645,
  16. 200 => 100646
  17. ],
  18. mtopcard\ChinaUnicomCard => [
  19. 50 => 100647,
  20. 100 => 100648,
  21. 200 => 100649
  22. ],
  23. mtopcard\ChinaTelecomCard => [
  24. 50 => 100650,
  25. 100 => 100651,
  26. 200 => 100652
  27. ],
  28. ];
  29. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  30. const ERRCODES = ['-10', '-12', '-13', '-14', '-15', '-16', '-18', '-21'];
  31. }