config.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. const config = {
  2. userconfig: {
  3. app_id: "2016032301234394",
  4. version: "1.0",
  5. format: "json",
  6. sign_type: "RSA2",
  7. method: "alipay.system.oauth.token",
  8. timestamp: time,
  9. auth_token: null,
  10. alipay_sdk: "alipay-sdk-php-20161101",
  11. terminal_type: null,
  12. terminal_info: null,
  13. prod_code: null,
  14. notify_url: null,
  15. charset: "utf-8",
  16. app_auth_token: null,
  17. grant_type: 'authorization_code',
  18. code: '',
  19. },
  20. test: {
  21. alipay_sdk: 'alipay-sdk-php-20161101',
  22. app_id: '2016032301234394',
  23. charset: 'utf-8',
  24. code: '',
  25. format: 'json',
  26. grant_type: 'authorization_code',
  27. method: 'alipay.system.oauth.token',
  28. sign_type: 'RSA2',
  29. timestamp: time,
  30. version: '1.0'
  31. },
  32. out: {
  33. alipay_sdk: 'alipay-sdk-php-20161101',
  34. app_id: '2016032301234394',
  35. biz_content: '',
  36. charset: 'utf-8',
  37. format: 'json',
  38. method: 'alipay.trade.create',
  39. sign_type: 'RSA2',
  40. timestamp: time,
  41. version: '1.0',
  42. },
  43. outreq: {
  44. app_id: '2016032301234394',
  45. version: '1.0',
  46. format: 'json',
  47. sign_type: 'RSA2',
  48. method: 'alipay.trade.create',
  49. timestamp: time,
  50. auth_token: null,
  51. alipay_sdk: 'alipay-sdk-php-20161101',
  52. terminal_type: null,
  53. terminal_info: null,
  54. prod_code: null,
  55. notify_url: null,
  56. charset: 'utf-8',
  57. app_auth_token: null,
  58. }
  59. }
  60. module.exports = {
  61. url,
  62. key_get,
  63. }