payment.php 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php
  2. return [
  3. 'accountTypes'=>[
  4. 1=>'商城消费',
  5. 2=>'充值缴费',
  6. 3=>'退款',
  7. 4=>'佣金提现',
  8. 5=>'提现驳回',
  9. 6=>'平台入款',
  10. 7=>'商家佣金',
  11. 8=>'代理收益',
  12. 9=>'推广收益',
  13. ],
  14. 'kdCodes'=>[
  15. 'jd'=>'京东快递',
  16. 'shentong'=>'申通快递',
  17. 'shunfengkuaiyun'=>'顺丰快运',
  18. 'shunfeng'=>'顺丰',
  19. 'yuantong'=>'圆通快递',
  20. 'zhongtong'=>'中通快递',
  21. 'jtexpress'=>'极兔速递',
  22. 'yunda'=>'韵达快递',
  23. 'debangkuaidi'=>'德邦快递',
  24. 'debangwuliu'=>'德邦物流',
  25. 'huitongkuaidi'=>'百世快递',
  26. 'youzhengguonei'=>'邮政快递包裹',
  27. 'zhaijisong'=>'宅急送',
  28. ],
  29. 'wechat' => [
  30. 'wechat'=>[
  31. 'default' => [
  32. // 必填-商户号
  33. 'mch_id' => '',
  34. // 必填-v3商户秘钥
  35. 'mch_secret_key' => '',
  36. // 必填-商户私钥 字符串或路径
  37. 'mch_secret_cert' => base_path().'/resources/certs/wechat/apiclient_key.pem',
  38. // 必填-商户公钥证书路径
  39. 'mch_public_cert_path' => base_path().'/resources/certs/wechat/apiclient_cert.pem',
  40. // 选填-微信公钥证书路径, optional,强烈建议 php-fpm 模式下配置此参数
  41. 'wechat_public_cert_path' => [
  42. //前面是证书***,登录商户平台【API安全】->【API证书】->【查看证书】,可查看商户API证书***
  43. //后面是通过前面的配置生成的文件 参考:http://www.liziyu.com/archives/309/
  44. 'PUB_KEY_ID_0111032309772025121600111926001205' => base_path().'/resources/certs/wechat/pub_key.pem',
  45. ],
  46. // 必填
  47. 'notify_url' => '',
  48. // 选填-默认为正常模式。可选为: MODE_NORMAL, MODE_SERVICE
  49. 'mode' => 0,
  50. ],
  51. ],
  52. 'logger' => [ // optional
  53. 'enable' => true,
  54. 'file' => base_path().'/storage/logs/wechat.log',
  55. 'level' => 'info', // 建议生产环境等级调整为 info,开发环境为 debug
  56. 'type' => 'single', // optional, 可选 daily.
  57. 'max_file' => 7, // optional, 当 type 为 daily 时有效,默认 30 天
  58. ],
  59. 'http' => [ // optional
  60. 'timeout' => 5.0,
  61. 'connect_timeout' => 5.0,
  62. ],
  63. ],
  64. 'alipay'=> [
  65. 'alipay' => [
  66. 'default' => [
  67. // 必填-支付宝分配的 app_id
  68. 'app_id' => '',
  69. // 必填-应用私钥 字符串或路径
  70. 'app_secret_cert' => '',
  71. // 必填-应用公钥证书 路径
  72. 'app_public_cert_path' => base_path().'/resources/certs/alipay/appCertPublicKey.crt',
  73. // 必填-支付宝公钥证书 路径
  74. 'alipay_public_cert_path' => base_path().'/resources/certs/alipay/alipayCertPublicKey_RSA2.crt',
  75. // 必填-支付宝根证书 路径
  76. 'alipay_root_cert_path' => base_path().'/resources/certs/alipay/alipayRootCert.crt',
  77. // 直接回调地址
  78. 'return_url' => '',
  79. // 必填
  80. 'notify_url' => '',
  81. // 'notify_url' => 'https://yansongda.cn/alipay/notify',
  82. // 选填-默认为正常模式。可选为: MODE_NORMAL, MODE_SERVICE
  83. 'mode' => 0,
  84. ]
  85. ],
  86. 'logger' => [ // optional
  87. 'enable' => true,
  88. 'file' => base_path().'/storage/logs/alipay.log',
  89. 'level' => 'info', // 建议生产环境等级调整为 info,开发环境为 debug
  90. 'type' => 'single', // optional, 可选 daily.
  91. 'max_file' => 7, // optional, 当 type 为 daily 时有效,默认 30 天
  92. ],
  93. 'http' => [ // optional
  94. 'timeout' => 5.0,
  95. 'connect_timeout' => 5.0,
  96. ],
  97. ],
  98. ];