- 👋 Hi, I’m @happypeter
- 👀 I’m interested in Web development
- 🌱 I’m currently learning GPT
happypeter / alipay_dualfun Goto Github PK
View Code? Open in Web Editor NEW已经退休的,支付宝双功能收款接口 gem
License: MIT License
已经退休的,支付宝双功能收款接口 gem
License: MIT License
收银台付款成功,返回我方的链接是这样的:
http://www.company.com/payments/success?
body=%E6%84%9F%E8%B0%A2%E6%82%A8%E8%B4%AD%E4%B9%B0+iPhone+5+%EF%BC%81
&buyer_email=happypeter1983%40gmail.com
&buyer_id=2088402465245110
&exterface=trade_create_by_buyer
&is_success=T
&logistics_fee=10.00
&logistics_payment=BUYER_PAY
&logistics_type=POST
¬ify_id=RqPnCoPT3K9%252Fvwbh3I72KnLWoJfNJg2Gd417h%252FnH8MPpy0wp%252BR61Ce%252FhynaOUWB8aAPb
¬ify_time=2013-07-15+11%3A11%3A58
¬ify_type=trade_status_sync
&out_trade_no=KC201301300001D
&payment_type=1
&receive_address=null
&seller_email=happycasts%40gmail.com
&seller_id=2088012362182973
&subject=iPhone+5+16G+%E9%BB%91%E8%89%B2+x+1
&total_fee=10.20
&trade_no=2013071431556611
&trade_status=TRADE_FINISHED
&sign=76086670a3aa6eb7ec5ae9cacd323673
&sign_type=MD5
默认应为 0 , 适应虚拟货物交易
公开接口 set_logistics_options(...) 适应实物商品交易
Some companies will only use gems with a certain license.
The canonical and easy way to check is via the gemspec
via e.g.
spec.license = 'MIT'
# or
spec.licenses = ['MIT', 'GPL-2']
There is even a License Finder to help companies ensure all gems they use
meet their licensing needs. This tool depends on license information being available in the gemspec.
Including a license in your gemspec is a good practice, in any case.
How did I find you?
I'm using a script to collect stats on gems, originally looking for download data, but decided to collect licenses too,
and make issues for missing ones as a public service :)
https://gist.github.com/bf4/5952053#file-license_issue-rb-L13 So far it's going pretty well
这部分我还没做,未来可以抄袭 : https://github.com/chloerei/alipay/blob/master/lib/alipay/notify.rb
改为担保交易,只需要修改两个地方:
trade_create_by_buyer
改为担保交易的接口 create_partner_trade_by_buyer
transport_type
和 create_transport_type
两个参数不能同时为空http://rubydoc.info/gems/alipay_dualfun/0.0/frames
now shows me:
We can't seem to find any versions for the gem alipay_dualfun. Are you sure you typed it correctly?
notify_url 不是必须项,如果请求中没有这个参数则支付包就不会像我这边 post 异步通知了。
问题是:这个东西有什么具体好处?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.