payment.php 6.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. return [
  3. 'tl' => [
  4. 'app_id' => '00265677', // APPID
  5. 'cus_id' => '660451073920V5E',// 商户id
  6. 'md5_key' => '55079104816PJXP04',// md5 秘钥
  7. 'private_key' => 'MIIEowIBAAKCAQEA1PRVftKiQcN75dsB3p2CPHaqFtfDIhFAarQ9Vt9+470zNPKBHgJJKj4ievpDoCxOHXHQEHlRJqirlc57085cIQkR4aWce30YroPjNzvpQFPXlPFE30yom43DL0kHykHPPEQy81NUv9Afj1cQcUtRbHKsrBaq12Dhsp+lTK7dnMMHo02xwwYcb4U/QBkroZKo5aKFgy/JNpeENrADKC2fSqTqVcsWEZ+dzFOaTXqK8Va32u4JrMWIdEHGrZclUSMiqnYGZQwtEZgcsqFhrv3Akk8Ry1764Jh1w6z1XUGrVf0s/iY79lIWy3POanndYlnwjQEMmt6++oOk2h2+qniPIQIDAQABAoIBAD2WtKtLK9YtPUYLAw1pLGNkRmj42dyedKznl93qIX6oF4k2oZUWQCbRdZNvkeNfLPBjHDPHgmrV2VooL7PgONDtGJjUFt+4HE1Mo4gz8Y/DL9RJuwuB1jm21D52tqQOSGs7piitbxNSk+4W1hCOIexldf8HRz2nLV9FwL7ezAUr8z+VDXPUCCleuzZg2d4s8lhIY8hAg6IoHMwtrVJA9HCc9CdwBtqOZUKELPaU3wRM9+IxxQGJI7JqPifzRgXZAenC/UEI49c0vXUmx1lQL224K0apd4Lu+ikCw5bilVLYYLrFbV/PSefltr7zIGmKQ308U8zUdA3/tm7lNkvGPckCgYEA+unM5YszqtpCD0sfI0/9D+DvD8i75APLa05BU+0nrUqnX4JvhgKRRwd6k1dGK6vBj8ZCNf8/h2XySSW5Xux518PJaXVfmLgfiSNk1ohZOzdAzrYD9QkxrOHL6d5d7jEYg/lRGXz5AvWtMBXOgR0u9rmlvvOe6AosKWJgiwAfy/sCgYEA2UWIgmhDTZwxUvNT+0/KX6dVwG/d0FzON+onnuOGb4i8unGffvOs2jNkQg4xtAyPE4IhscJZLF0GypGLadUTE+txftERFQl6dVVtDT5CE41b4h+VV053mVAh+bnbLEhIsbp9xf4bVIO+Q0nrhj0wonkcBoNYkkQqXXmwU+DZ6pMCgYBDDMFFQdqPuH1YquFqRVDBsoEPvbt/5gew6BuK+t/UbhOl8SwuKnd5/KSjxPmqZ950ti0xUsE+RF7nbx5HIHg60UX8WXIvVFyRABVNQuhda5l046zRCSDuKvSbzWFaamI7uh8S6ZN9V/ts0xb457yKD/gbu+xl43oDoRddba4RiwKBgFVD02GR9y+i5zxtX3zVgE7vhViCziKx+P+6dZgGJEDrAV2Nr5ELob7zwhmmJl1JPHDkdcKjyYj+bObcHUEILHd5w02IUFLYKGWZg7VZxGaV6AQibuIXWhohd2PgSyHisByHWkp0AVe2Z9lSTgqdQtPQAW6Q5xZnh9StJ8STDhHfAoGBAMV96ScKbMWged6GsbWH0xEew/c5KwYZdKwim9ysyB2Il6O9VwYMCUWV1/XaZB+crOzpi/s9BVfPuGSOhzNqZkQPnSH39GJj/ud5D25OufQ0JUeMUzfgJ2wmYZp8Bk/C2UOQ/rdB/Uw/Dow1BDaoZ3ttgNEnev/ihWtpBMPbqJQb',
  8. 'public_key' => 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCm9OV6zH5DYH/ZnAVYHscEELdCNfNTHGuBv1nYYEY9FrOzE0/4kLl9f7Y9dkWHlc2ocDwbrFSm0Vqz0q2rJPxXUYBCQl5yW3jzuKSXif7q1yOwkFVtJXvuhf5WRy+1X5FOFoMvS7538No0RpnLzmNi3ktmiqmhpcY/1pmt20FHQQIDAQAB',
  9. 'sign_type' => 'RSA',// MD5 HMAC-SHA256
  10. 'limit_pay' => ['no_credit'],
  11. 'notify_url' => 'https://app.wanyuewellness.com.cn/',
  12. 'redirect_url' => '',// 如果是h5支付,可以设置该值,返回到指定页面
  13. 'return_raw' => false,// 在处理回调时,是否直接返回原始数据,默认为true
  14. ],
  15. 'alipay' => [
  16. 'app_id' => '2021004155613207',
  17. 'notify_url' => getenv('NOTIFY_DOMAIN') . '/api.pay.notify.php',
  18. 'return_url' => getenv('NOTIFY_DOMAIN') . '/api.pay.notify.php',
  19. 'ali_public_key' => 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2NY/qJXPHCcbYdeRMHjK5uZK7nL9Uhpyq+itpl/lqQSmuQ8Kz6zHsQOEPeAr5b4CBU/7mr/UhUKrsCiIsjqFOkLS/htrksdPEbzDSTC55kpYnt3RHCa/wuLu2rJ/44gatEklS7s+fgX4AYvN5LjjF5iaei/ec8naTlGM5odVL/smXjagFFiM3oAsHitPuVyBOmT5oSyxACy6J/b5bnvykI+1BD5ZOisT4A1n98yyG1utWJdPzQhCWUAN/gFuud7PsAXONbt/HSw940rxQCF64tg2q2oICFgdtxpLZk08GTzsz957Y02nskovTXVLwVPzvYvdzNCT2Htl3vZmacvIqQIDAQAB',
  20. // 加密方式: **RSA2**
  21. 'private_key' => 'MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCaUCndAhC4NUmpA/kL7fcs7o/kP044ZezMKUc0f/kh6n78D7TS+EtpJz2LODFXxdNamodyyz+AZh+aM22kPAXRFLWmjont1ODx3pQm2po0YIQxRz+v/4mj7OuZJ6gVF3Bvlr60g8LbFvnyqtG4vjBim/NIDCv0M294o7fRElPdxdf3yxgyzqBaFc7PmMEYVSVhBnlYHU3Hwczf2ylbv9A0g1fTLhaqqnSt5aJ4xETVoqtX0Vvh6GsnecObrgodZ9HD+Dcx70W+qQ/Td2R89PiHKR4d9ZNRu6H6J9OMYxxUvEGcFfvi+c3OT3PCf2X5RS4SD/VFsxwQXmmkye38qiDrAgMBAAECggEAE3EgJSE6fAryseG3QgKETtvrsyUqtL5avEpDF2E8QUKrJxTPgnkX/zKbdWvqA5YAD/1CLXtgD8xOFP5/xN5vGS2TyV1SEW3tvWt+nPqTzR+P6CmC46i9bb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GWJsOYkzooFhX+TVGXCXE4EE3E471GadQOhy3EQ=',
  22. 'log' => [ // optional
  23. 'file' => runtime_path('logs/alipay.log'),
  24. 'level' => 'info', // 建议生产环境等级调整为 info,开发环境为 debug
  25. 'type' => 'single', // optional, 可选 daily.
  26. 'max_file' => 30, // optional, 当 type 为 daily 时有效,默认 30 天
  27. ],
  28. 'http' => [ // optional
  29. 'timeout' => 5.0,
  30. 'connect_timeout' => 5.0,
  31. // 更多配置项请参考 [Guzzle](https://guzzle-cn.readthedocs.io/zh_CN/latest/request-options.html)
  32. ],
  33. // 'mode' => 'dev', // optional,设置此参数,将进入沙箱模式
  34. ],
  35. 'wxpay' => [
  36. 'appid' => 'wx089c26eaf96c3d51', // APP APPID
  37. 'app_id'=>'wxc6274da7198e3eb4',
  38. 'miniapp_id' => 'wxc4a09d3062d60a94',
  39. 'mch_id' => '1680393367',
  40. 'key' => 'c451cedbab8058e3502a35c6dacf0919',
  41. 'notify_url' => getenv('NOTIFY_DOMAIN') . '/api.pay.notify.php',
  42. 'cert_client' => config_path('cert/wxpay/apiclient_cert.pem'), // optional,退款等情况时用到
  43. 'cert_key' => config_path('cert/wxpay/apiclient_key.pem'),// optional,退款等情况时用到
  44. 'log' => [ // optional
  45. 'file' => runtime_path('logs/wechat.log'),
  46. 'level' => 'info', // 建议生产环境等级调整为 info,开发环境为 debug
  47. 'type' => 'single', // optional, 可选 daily.
  48. 'max_file' => 30, // optional, 当 type 为 daily 时有效,默认 30 天
  49. ],
  50. 'http' => [ // optional
  51. 'timeout' => 5.0,
  52. 'connect_timeout' => 5.0,
  53. // 更多配置项请参考 [Guzzle](https://guzzle-cn.readthedocs.io/zh_CN/latest/request-options.html)
  54. ],
  55. // 'mode' => 'dev', // optional, dev/hk;当为 `hk` 时,为中国香港 gateway。
  56. ]
  57. ];