payment.php 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. return [
  3. 'accountTypes'=>[
  4. 1=>'订单收入',
  5. 2=>'充值保证金',
  6. 3=>'退保申请',
  7. 4=>'收入提现',
  8. 5=>'提现驳回',
  9. ],
  10. 'wechat' => [
  11. 'wechat'=>[
  12. 'default' => [
  13. // 必填-商户号
  14. 'mch_id' => '',
  15. // 必填-v3商户秘钥
  16. 'mch_secret_key' => '',
  17. // 证书序列号
  18. 'serial_no' => '', // 仅证书,非公钥方式验证签名,24年前的商户可用
  19. // 必填-商户私钥 字符串或路径
  20. 'mch_secret_cert' => base_path().'/resources/certs/wechat/apiclient_key.pem',
  21. // 必填-商户公钥证书路径
  22. 'mch_public_cert_path' => base_path().'/resources/certs/wechat/apiclient_cert.pem',
  23. // 选填-微信公钥证书路径,公钥方式验证签名需配置
  24. 'wechat_public_cert_path' => [
  25. //前面是证书***,登录商户平台【API安全】->【API证书】->【查看证书】,可查看商户API证书***
  26. 'PUB_KEY_ID_0116426419052026020300212051002807' => base_path().'/resources/certs/wechat/pub_key.pem',
  27. ],
  28. // 必填
  29. 'notify_url' => '',
  30. // 选填-默认为正常模式。可选为: MODE_NORMAL, MODE_SERVICE
  31. 'mode' => 0,
  32. ],
  33. ],
  34. 'logger' => [ // optional
  35. 'enable' => true,
  36. 'file' => base_path().'/storage/logs/wechat.log',
  37. 'level' => 'info', // 建议生产环境等级调整为 info,开发环境为 debug
  38. 'type' => 'single', // optional, 可选 daily.
  39. 'max_file' => 7, // optional, 当 type 为 daily 时有效,默认 30 天
  40. ],
  41. 'http' => [ // optional
  42. 'timeout' => 5.0,
  43. 'connect_timeout' => 5.0,
  44. ],
  45. ],
  46. 'alipay'=> [
  47. 'alipay' => [
  48. 'default' => [
  49. // 必填-支付宝分配的 app_id
  50. 'app_id' => '',
  51. // 必填-应用私钥 字符串或路径
  52. 'app_secret_cert' => '',
  53. // 必填-应用公钥证书 路径
  54. 'app_public_cert_path' => base_path().'/resources/certs/alipay/appCertPublicKey.crt',
  55. // 必填-支付宝公钥证书 路径
  56. 'alipay_public_cert_path' => base_path().'/resources/certs/alipay/alipayCertPublicKey_RSA2.crt',
  57. // 必填-支付宝根证书 路径
  58. 'alipay_root_cert_path' => base_path().'/resources/certs/alipay/alipayRootCert.crt',
  59. // 直接回调地址
  60. 'return_url' => '',
  61. // 必填
  62. 'notify_url' => '',
  63. // 'notify_url' => 'https://yansongda.cn/alipay/notify',
  64. // 选填-默认为正常模式。可选为: MODE_NORMAL, MODE_SERVICE
  65. 'mode' => 0,
  66. ]
  67. ],
  68. 'logger' => [ // optional
  69. 'enable' => true,
  70. 'file' => base_path().'/storage/logs/alipay.log',
  71. 'level' => 'info', // 建议生产环境等级调整为 info,开发环境为 debug
  72. 'type' => 'single', // optional, 可选 daily.
  73. 'max_file' => 7, // optional, 当 type 为 daily 时有效,默认 30 天
  74. ],
  75. 'http' => [ // optional
  76. 'timeout' => 5.0,
  77. 'connect_timeout' => 5.0,
  78. ],
  79. ],
  80. ];