wxconfig.php 1.1 KB

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /*
  3. * The file is part of the payment lib.
  4. *
  5. * (c) Leo <dayugog@gmail.com>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. return [
  11. 'use_sandbox' => false, // 是否使用 微信支付仿真测试系统
  12. 'app_id' => 'wxxxxxxxx', // 公众账号ID
  13. 'mch_id' => '123123123', // 商户id
  14. 'md5_key' => '23423423dsaddasdas', // md5 秘钥
  15. 'app_cert_pem' => dirname(__FILE__) . DIRECTORY_SEPARATOR . 'wx' . DIRECTORY_SEPARATOR . 'pem' . DIRECTORY_SEPARATOR . 'apiclient_cert.pem',
  16. 'app_key_pem' => dirname(__FILE__) . DIRECTORY_SEPARATOR . 'wx' . DIRECTORY_SEPARATOR . 'pem' . DIRECTORY_SEPARATOR . 'apiclient_key.pem',
  17. 'sign_type' => 'MD5', // MD5 HMAC-SHA256
  18. 'limit_pay' => [
  19. //'no_credit',
  20. ], // 指定不能使用信用卡支付 不传入,则均可使用
  21. 'fee_type' => 'CNY', // 货币类型 当前仅支持该字段
  22. 'notify_url' => 'https://dayutalk.cn/v1/notify/wx',
  23. 'redirect_url' => 'https://dayutalk.cn/', // 如果是h5支付,可以设置该值,返回到指定页面
  24. ];