使用 FastAdmin 的 epay 插件时,我们通过传不同的 method 决定支付方式。

 

method=mp 时表示公众号支付,此时必须要 openid,但是插件里并没有说明如何获取。

 

其实这个 openid 的获取,addons/epay/library/Service.php 中已经写好了方法 Service::getOpenid().

 

我们给 Service::submitOrder() 最后一个参数传入即可。

 

Link:https://www.cnblogs.com/farwish/p/14723415.html

相关文章:

  • 2021-09-11
  • 2022-01-01
  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
  • 2021-05-06
  • 2021-05-25
相关资源
相似解决方案