微信支付 退款篇

2021-09-10 02:20:45 字數 822 閱讀 3575

快速搭建指南

①、安裝配置nginx+phpfpm+php

②、建sdk解壓到**根目錄

③、修改lib/wxpay.config.php為自己申請的商戶號的資訊(配置詳見說明)

cert下的檔案——退款是需要用到證書的。

⑥、搭建完成

遇見問題1

解決方法:配置檔案中的證書路徑必須寫絕對路徑,且如下

wxpay.config.php檔案中

const sslcert_path = 'c:\wamp\www\****\wxpayapi_php_v3\example\apiclient_cert.pem';

const sslkey_path = 'c:\wamp\www\****\wxpayapi_php_v3\example\apiclient_key.pem';

問題2

這個錯誤通過修改檔案wxpay.api.php 解決,具體如下:

第537行

curl_setopt($ch,curlopt_ssl_verifypeer,true);

curl_setopt($ch,curlopt_ssl_verifyhost,2);//嚴格校驗

tocurl_setopt($ch,curlopt_ssl_verifypeer,false);

curl_setopt($ch,curlopt_ssl_verifyhost,false);//嚴格校驗2

這樣,這兩個問題就解決了!祝你好運!

posted @

2017-04-20 15:11

newman·li 閱讀(

...)

編輯收藏

微信支付 退款 v3版微信支付

證書 apiclient cert.p12。jar包 commons codec 1.6.jar commons logging 1.1.3.jar fluent hc 4.3.4.jar httpclient 4.3.4.jar httpclient cache 4.3.4.jar httpcor...

C 微信支付(五) 申請退款

這是wxpayapi.cs的乙個方法,其他的方法可以去基礎幫助類裡面看 申請退款 param wxpaydata inputobj 提交給申請退款api的引數 param int timeout 超時時間 throws wxpayexception return 成功時返回介面呼叫結果,其他拋異常 ...

TP5微信支付退款

weixinpay php namespace use think log use think db use think cache class weixinpay 退款 param float totalfee 訂單金額 單位元 param float refundfee 退款金額 單位元 par...