合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
1.路径与index.php文件持平 ~~~ require_once "../extend/WxPay/lib/WxPay.Api.php"; require_once "../extend/WxPay/example/WxPay.JsApiPay.php"; require_once "../extend/WxPay/example/WxPay.Config.php"; require_once "../extend/WxPay/lib/WxPay.Data.php"; ~~~ 2.不加路径 ~~~ $input = new \WxPayUnifiedOrder(); $config = new \WxPayConfig(); $order = new \WxPayApi(); ~~~ 3.被引入的库文件引入路径同样要改 ~~~ require_once "../extend/WxPay/lib/WxPay.Exception.php"; require_once "../extend/WxPay/lib/WxPay.Config.Interface.php"; require_once "../extend/WxPay/lib/WxPay.Data.php"; ~~~