Giter VIP home page Giter VIP logo

Comments (17)

yansongda avatar yansongda commented on May 14, 2024

感谢您的支持!

请问香港那边的微信开发文档在哪里可以看到?

from pay.

riseno avatar riseno commented on May 14, 2024

現在來說,都沒有公開的,都是微信內部發 doc 過來。而且現在只出了刷卡支付,掃碼和公眾號的也沒那麼快可以有。

WeChat Pay HK 刷卡支付商户开发者文档.doc.zip

你看看吧,我項目已經把這塊接入了。但可以吐糟的是 response data 跟國內錢包有點不一樣.

from pay.

riseno avatar riseno commented on May 14, 2024

@yansongda 對於這個有想法嗎?寫我是寫好了,就是看您對 namespace convention 要怎麼處理,然後我再發 PR

from pay.

yansongda avatar yansongda commented on May 14, 2024

刚刚初步看了下文档,发现其实应该就只有 endpoint 不一样,其它应该都差不多的吧?不知您怎么看。

如果真是这样,其实就很好处理了,给多一个 HKEndpoint,调用的时候默认是大陆的,只有参数中有 hk 标识时才选用 HKEndpoint。

不知您怎么看?

from pay.

riseno avatar riseno commented on May 14, 2024

您說的是類似這樣嗎?

$config = [
    'wechat' => [
        'wallet_region' => 'hk', // default cn.
        'app_id' => '',
        'mch_id' => '',
        // 'sub_mch_id' => '',
        'key' => '',
        'cert_client' => '',
        'cert_key' => '',
        'notify_url' => '',
    ],
];

$pay =  new Pay($config);

from pay.

yansongda avatar yansongda commented on May 14, 2024

Yes, something like that~

不过建议 wallet_region 参数可选,如果不设置,默认为 cn。

from pay.

riseno avatar riseno commented on May 14, 2024

行,我還得想一下 hk wallet 的 endpoints 要怎麼處理比較好。

from pay.

yansongda avatar yansongda commented on May 14, 2024

merged!

测试一段儿时间后将发布新版本。

感谢您的支持!

from pay.

riseno avatar riseno commented on May 14, 2024

剛剛那個PR沒香港錢包,過一兩天我會把香港錢包的支持再發 PR

from pay.

yansongda avatar yansongda commented on May 14, 2024

v2.0.0 版本已经增加了 香港 region。目前已经开发完成,版本号为 v2.0.0-beta,您可以试用。

感谢您的支持!

from pay.

riseno avatar riseno commented on May 14, 2024

如果我沒看錯的話,那應該只是大陸錢包在東南亞的endpoint吧。

香港錢包的 endpoint 是 https://mchapi.wechatpay.com.hk/cgi-bin

pos 的 path 是 ia_mch_qr_auth.cgi

from pay.

yansongda avatar yansongda commented on May 14, 2024

额,我看您提交的 PR 并未包含这些,您3楼给的那个文档也未包含。请问有具体的文档吗?

from pay.

yansongda avatar yansongda commented on May 14, 2024

我未使用过您说的 香港钱包,不过现在从APPStore下载的应该都是一个微信吧,只是语言不同而已。请问您说的 香港钱包 具体使用在哪里?

wechatpay.com.hk 也是访问不了的。

from pay.

riseno avatar riseno commented on May 14, 2024

三樓文檔有寫

screen shot 2017-12-26 at 3 05 49 pm

而香港錢包可以在微信這裡設置,

whatsapp image 2017-12-26 at 3 07 23 pm

至於 wechatpay.com.hk 只能用子域名訪問

from pay.

yansongda avatar yansongda commented on May 14, 2024

请问目前使用 香港钱包 的业务场景多吗?使用频率多吗?

from pay.

riseno avatar riseno commented on May 14, 2024

暫時只有 pos 模式,基本場景跟大陸錢包差不多

from pay.

riseno avatar riseno commented on May 14, 2024

I'm closing it coz wechat HK wallet have combined into CN wallet's API.

from pay.

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.