payment.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. //支付配置
  3. return [
  4. 'alipay' => [
  5. // 即时到账方式
  6. 'payment_type' => 1,
  7. // 传输协议
  8. 'transport' => 'http',
  9. // 编码方式
  10. 'input_charset' => 'utf-8',
  11. // 签名方法
  12. 'sign_type' => 'MD5',
  13. // 证书路径
  14. 'cacert' => './cacert.pem',
  15. //验签公钥地址
  16. 'public_key_path' => './alipay_public_key.pem',
  17. 'private_key_path' => '',
  18. // 支付完成异步通知调用地址
  19. 'notify_url' => '/order/callback_alipay/notify',
  20. // 支付完成同步返回地址
  21. 'return_url' => '/order/callback_alipay/return',
  22. // 支付宝商家 ID
  23. 'partner' => '2088xxxxxxxx',
  24. // // 支付宝商家 KEY
  25. 'key' => 'xxxxxxxxxxxx',
  26. // // 支付宝商家注册邮箱
  27. 'seller_email' => 'email@domain.com'
  28. ],
  29. 'wechat' => [
  30. //微信支付配置数组
  31. // 公众账号appid
  32. 'appid' => '',
  33. // 商户号
  34. 'mch_id' => '',
  35. // 加密key
  36. 'apikey' => '',
  37. // 公众号appsecret
  38. 'appsecret' => '',
  39. // 证书路径(apiclient_cert.pem)
  40. 'sslcertPath' => '',
  41. // 密钥路径(apiclient_key.pem)
  42. 'sslkeyPath' => '',
  43. // 支付完成异步通知调用地址
  44. 'notify_url' => ''
  45. ]
  46. ];