config.php 880 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace refill\yuanta;
  3. use mtopcard;
  4. class config
  5. {
  6. const ORDER_URL = 'http://59.110.225.82:8911/api/hf/order/submit';
  7. const QUERY_URL = 'http://59.110.225.82:8911/api/order/query';
  8. const BALANCE_URL = 'http://59.110.225.82:8911/api/account/balance';
  9. const APP_ID = '4hN2nZgRit';
  10. const APP_SECRET = 'bduMNryfJoWNkKaZ';
  11. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_yuanta.php";
  12. const PRODUCT = [
  13. mtopcard\ChinaMobileCard => [
  14. ],
  15. mtopcard\ChinaUnicomCard => [
  16. 100 => 100040,
  17. 200 => 100041
  18. ],
  19. mtopcard\ChinaTelecomCard => [
  20. 100 => 100046,
  21. 200 => 100047
  22. ],
  23. ];
  24. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  25. const ERRCODES = ['-10', '-12', '-13', '-14', '-15', '-16', '-18', '-21'];
  26. }