Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【官方调查问卷】微信支付 API v3 PHP SDK 开发者体验调查 #17

Open
xy-peng opened this issue Jul 21, 2021 · 14 comments
Open

Comments

@xy-peng
Copy link
Contributor

xy-peng commented Jul 21, 2021

为了向广大开发者提供更好的使用体验,微信支付诚挚邀请您将使用微信支付 API v3 SDK中的感受反馈给我们。本问卷可能会占用您不超过2分钟的时间,感谢您的支持。

问卷系统使用的腾讯问卷,您可以点击这里,或者扫描以下二维码参与调查。

image

TheNorthMemory added a commit to TheNorthMemory/wechatpay-php that referenced this issue Jul 21, 2021
TheNorthMemory added a commit to TheNorthMemory/wechatpay-php that referenced this issue Jul 21, 2021
@xy-peng xy-peng changed the title 【调查问卷】微信支付 API v3 PHP SDK 开发者体验调查 【官方调查问卷】微信支付 API v3 PHP SDK 开发者体验调查 Jul 21, 2021
TheNorthMemory added a commit to TheNorthMemory/wechatpay-php that referenced this issue Jul 21, 2021
@xy-peng xy-peng pinned this issue Jul 21, 2021
TheNorthMemory added a commit to TheNorthMemory/wechatpay-php that referenced this issue May 21, 2022
@as882301
Copy link

as882301 commented Feb 1, 2023

demo 都不搞全

@TheNorthMemory
Copy link
Collaborator

@as882301

当你阅读了,为 wechatpay-php 增加IDE提示的接口描述包 iwechatpay/openapi 介绍,以及正确的使用了composer及成熟IDE,你会发现demo纯粹是多余的。

PHPStormVisual Studio Code 可正常链上几乎所有接口,请求参数描述也可以无脑式,从对应的方法中直接拷贝出去(没有任何方言的完整数据结构),当自有项目的数据接口参照。

@jk1860
Copy link

jk1860 commented Apr 7, 2023


Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 0: The cURL request was retried 3 times and did not succeed. The most likely reason for the failure is that cURL was unable to rewind the body of the request and subsequent retries resulted in the same error. Turn on the debug option to see what went wrong. See https://bugs.php.net/bug.php?id=47204 for more information. (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://api.mch.weixin.qq.com/v3/certificates in D:\codes\eju_online\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:211 Stack trace: #0 D:\codes\eju_online\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(542): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array) #1 D:\codes\eju_online\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(155): GuzzleHttp\Handler\CurlFactory::retryFailedRewind(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Array) #2 D:\codes\eju_online\vendor\guzzlehttp\guzzle\s in D:\codes\eju_online\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 211

搞不定阿,不知道什么情况~

@cmslz
Copy link

cmslz commented Jul 29, 2023

Builder::normalize 方法的替换兼容性不够好

@TheNorthMemory
Copy link
Collaborator

Builder::normalize 方法的替换兼容性不够好

有没例子说明下不好在哪里?

@cmslz
Copy link

cmslz commented Jul 29, 2023

image
image
Builder::normalize 方法把我的订单号替换了
我把截图圈起来的地方注释掉就可以正常查到订单结果了

@TheNorthMemory
Copy link
Collaborator

TheNorthMemory commented Jul 29, 2023

image image Builder::normalize 方法把我的订单号替换了 我把截图圈起来的地方注释掉就可以正常查到订单结果了

参考:

#74 (comment)

及README底部FAQ

为什么 URL 上的变量 OpenID,请求时被替换成小写了?

本 SDK 把 URL 中的大写视为包含连字号的 segment。请求时, camelCase 会替换为 camel-case。相关 issue 可参考 #56#69

为了避免大小写错乱,URL 中存在变量时的正确做法是:使用 链式 URI Template 的 Path 变量。比如:

推荐写法

->v3->marketing->favor->users->_openid_->coupons->post(['openid' => 'AbcdEF12345'])
->v3->marketing->favor->users->{'{openid}'}->coupons->post(['openid' => 'AbcdEF12345'])
->chain('{+myurl}')->post(['myurl' => 'v3/marketing/favor/users/AbcdEF12345/coupons'])
->{'{+myurl}'}->post(['myurl' => 'v3/marketing/favor/users/AbcdEF12345/coupons'])

@cmslz
Copy link

cmslz commented Jul 29, 2023

image image Builder::normalize 方法把我的订单号替换了 我把截图圈起来的地方注释掉就可以正常查到订单结果了

参考:

#74 (comment)

及README底部FAQ

为什么 URL 上的变量 OpenID,请求时被替换成小写了?

本 SDK 把 URL 中的大写视为包含连字号的 segment。请求时, camelCase 会替换为 camel-case。相关 issue 可参考 #56#69

为了避免大小写错乱,URL 中存在变量时的正确做法是:使用 链式 URI Template 的 Path 变量。比如:

推荐写法

->v3->marketing->favor->users->_openid_->coupons->post(['openid' => 'AbcdEF12345'])
->v3->marketing->favor->users->{'{openid}'}->coupons->post(['openid' => 'AbcdEF12345'])
->chain('{+myurl}')->post(['myurl' => 'v3/marketing/favor/users/AbcdEF12345/coupons'])
->{'{+myurl}'}->post(['myurl' => 'v3/marketing/favor/users/AbcdEF12345/coupons'])

这个写法确实解决了我的问题,不过这种我之前那个用法很容易产生误导 还是感谢您的答复哈

@TheNorthMemory
Copy link
Collaborator

image image Builder::normalize 方法把我的订单号替换了 我把截图圈起来的地方注释掉就可以正常查到订单结果了

参考:
#74 (comment)
及README底部FAQ

为什么 URL 上的变量 OpenID,请求时被替换成小写了?

本 SDK 把 URL 中的大写视为包含连字号的 segment。请求时, camelCase 会替换为 camel-case。相关 issue 可参考 #56#69
为了避免大小写错乱,URL 中存在变量时的正确做法是:使用 链式 URI Template 的 Path 变量。比如:
推荐写法

->v3->marketing->favor->users->_openid_->coupons->post(['openid' => 'AbcdEF12345'])
->v3->marketing->favor->users->{'{openid}'}->coupons->post(['openid' => 'AbcdEF12345'])
->chain('{+myurl}')->post(['myurl' => 'v3/marketing/favor/users/AbcdEF12345/coupons'])
->{'{+myurl}'}->post(['myurl' => 'v3/marketing/favor/users/AbcdEF12345/coupons'])

这个写法确实解决了我的问题,不过这种我之前那个用法很容易产生误导 还是感谢您的答复哈

语义化及参数化URL后,就可以大规模、批量、模式化去“描述”所谓的“资源”,建议再看看 https://github.com/TheNorthMemory/wechatpay-openapi 项目,800+业务请求描述,批量按此规则“约束描述”都生成出来了。

@shuizhangzhe
Copy link

微信支付平台证书下载报错
[Symfony\Component\Process\Exception\ProcessTimedOutException]
The process "git branch -a --no-color --no-abbrev -v" exceeded the timeout of 300 seconds.

@zhouyl
Copy link

zhouyl commented Jun 26, 2024

  1. 不提供沙箱账号申请,对开发不友好
  2. 证书下载管理流程复杂、混乱,又要下载工具,又要登录这个登录那个,无法在一个页面完成全部操作
  3. SDK DEMO和文档不完善,调试困难
    总结:接过十多个支付方式,微信支付是最垃圾的

@van23qf
Copy link

van23qf commented Oct 24, 2024

对接支付这种流程多的,居然不提供沙箱测试,非要开发者拿真钱去调试?

@lo106258
Copy link

lo106258 commented Nov 2, 2024

按照这个仓库或在线文档,你们谁能一步全走通的?

@houguang
Copy link

houguang commented Nov 4, 2024

希望提供沙箱测试环境

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants