Code Monkey home page Code Monkey logo

Comments (21)

fzlee avatar fzlee commented on August 17, 2024

你具体是希望使用支付宝的哪一个功能呢? 有没有相关文档可以给我参考参考的?

from alipay.

alaikis avatar alaikis commented on August 17, 2024

是这样的,我们开发的系统商户需要配置自己的收款系统,那这样的话如果每个商户都开发那么就很麻烦,因此,我们就申请的是alipay的ISV权限,这样商户只要授权即可不需重新开发而使用支付宝,但是在isv模式下每次请求就需要带入app_auth_token,如果需要在biz_content里面使用appid则使用商户的ID而在系统参数方面还是使用开发者自己的appid
https://docs.open.alipay.com/common/105193
详细的见如上文档

from alipay.

alaikis avatar alaikis commented on August 17, 2024

可直接发邮件至[email protected]

from alipay.

fzlee avatar fzlee commented on August 17, 2024

也行吧,因为我个人目前接触ISV不是很多,开发可能需要一点时间,好了之后可能需要你帮忙测试一下

from alipay.

alaikis avatar alaikis commented on August 17, 2024

这个问题不大,isv和自用型最大的差别就是需要带上app_auth_token,还有在包体内的appid不同,其他的地方完全一致,我昨天改一下基本都可以跑,后面想想还是直接你们改比较好,这样可以一直跟版本,哈哈

from alipay.

fzlee avatar fzlee commented on August 17, 2024

test branch上面添加了ISVAliPay的相关逻辑, 使用方法可以在对应文档里面看到, 我本地测试是好的,问题是不知道线上测试如何。你可以帮我测试一下吗?

我这边做的修改基本上就是在每一个biz_content里面添加了app_auth_token而已

from alipay.

alaikis avatar alaikis commented on August 17, 2024

好的,我今天测试,十分感谢

from alipay.

alaikis avatar alaikis commented on August 17, 2024

无法生成支付地址,报
调试错误,请回到请求来源地,重新发起请求。
错误代码 missing-signature-config 错误原因: 验签出错, 未配置对应签名算法的公钥或者证书

说明:如果您不是因为本接口集成调试而看见该错误提醒,请联系本次请求来源网站,本错误属于网站集成接口的错误。

from alipay.

alaikis avatar alaikis commented on August 17, 2024

https://openapi.alipay.com/gateway.do?app_id=2017062607569737&biz_content=%7B%22subject%22%3A%22dsdsd%22%2C%22out_trade_no%22%3A%22dhdjfkdshsfjks%22%2C%22total_amount%22%3A500%2C%22product_code%22%3A%22FAST_INSTANT_TRADE_PAY%22%2C%22app_auth_token%22%3A%22201708BB0602d130de134e67993049b031a5bX76%22%7D&charset=utf-8&method=alipay.trade.page.pay&notify_url=https%3A%2F%2Fwww.safesettle.com%2Fgateway&sign_type=RSA2&timestamp=2017-08-06+09%3A49%3A41&version=1.0&sign=JO%2FQFPiCiM4FWHvxBD2Xf6xF9YTuTqfaG8CHbPkAhIYoSVHg6gUNEVjrfJ2AfWI%2BXdJcFbFzZk8Vbjruw1SRSpOJOvJguAtb1Wr4cHtwPWrAhxwhjWqGbBkDRsCFONo%2FtC2AgxotDCvwxLR2PSFaYR2jsjmilniIykD2Ofxyz1gwhJ15bhzWjVZlXSZv0RTWAK96gfZKQbNED3mQ1wtJbkZ0GBg8aC87oOaBS8VhdK1CuG5a5LMaPx2vp3U3QUeAF9Fefsi9%2Bz8Bq4aM9cDgCw123gm5syoG%2B0LSUkeIji9JhwPwCpxim7QhOUCkfxL4G7KkKlRYurS1zl2RY%2FN4EQ%3D%3D

from alipay.

fzlee avatar fzlee commented on August 17, 2024

这也是我疑惑的一个地方。你使用ISVAliPay的时候, 传入的app_id不属于自己对吧,而是属于授权的那个支付宝商家。

我感觉应该传入自己的app_id

from alipay.

initsword avatar initsword commented on August 17, 2024

官方说明是传自己的APPID,但是需要传入app_auth_token,我自己也试过,传授权方时会报没相应权限,传自己的就会报这个错误

from alipay.

fzlee avatar fzlee commented on August 17, 2024

我刚才又看了一遍文档,应该是我的问题

from alipay.

alaikis avatar alaikis commented on August 17, 2024

麻烦你了,呵呵

from alipay.

fzlee avatar fzlee commented on August 17, 2024

首先,我的代码有问题。app_auth_token 被附加到biz_content 里面去了。你可以更新一下test的代码。
其次,使用的appid需要是我们自己的appid。
再次,授权的时候,我用的是sandbox环境,不小心让用户帐号授权了, 应该用商家帐号授权的。

满足上面三个条件,测试应该可以通过了。

from alipay.

alaikis avatar alaikis commented on August 17, 2024

@alipay.open.auth.token.app自定义字段是否可以加上。这样在返回时能够校检用户或则来源。在地址拼接里面即可实现

from alipay.

fzlee avatar fzlee commented on August 17, 2024

可以的, 你那边测试没问题的对吧

from alipay.

initsword avatar initsword commented on August 17, 2024

已经没有问题了,自定义字段没问题就可以使用了

from alipay.

alaikis avatar alaikis commented on August 17, 2024

好了说一下,我测试一下回调参数,十分感谢

from alipay.

fzlee avatar fzlee commented on August 17, 2024

from alipay.

fzlee avatar fzlee commented on August 17, 2024

版本1.2.0 已经推上去了。关于自定义字段, 应该是我们拼接用户授权url的时候,自己添加的字段。在回调到我们后台的时候,会将这个字段一并返回。这个功能不需要我做什么修改

from alipay.

alaikis avatar alaikis commented on August 17, 2024

已经看到了,谢谢

from alipay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.