• 欢迎访问好资源,这里会在第一时间更新最新最好的资源给您,如果您有好的资源、文章,可投稿。如有其他需要请联系 QQ 点我注册
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏好资源吧~ 点我注册

给你的网站添加支付宝即时到帐按钮

前端设计 itsmalldog 5年前 (2014-11-20) 5796次浏览 已收录 5个评论 扫描二维码
本文最后更新于2014年11月20日,已超过 1 年没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!
文章目录[隐藏]

给自己的网站添加一个支付宝即时到帐功能,站长必会长存本领,哈哈

 

给你的网站添加支付宝即时到帐按钮

前言

大家都知道PayPal有一个非常使用的「一键转账」功能,但是自从支付宝的个人收款主页停止服务后,支付宝已经无法实现该功能了,那有我天朝人民想不到的办法呢?今天博猪就来教大家使用一个极其简单的 form 标签经过 POST 可以一键自动填写「支付宝转账页面」的信息,让大家更方便、更快捷的转账捐赠你!O(∩_∩)O哈哈~

代码

<span class="tag"><span class="tag"><form</span></span> <span class="atn"><span class="atn">action</span></span><span class="pun"><span class="pun">=</span></span><span class="atv"><span class="atv">"https://shenghuo.alipay.com/send/payment/fill.htm"</span></span> <span class="atn"><span class="atn">method</span></span><span class="pun"><span class="pun">=</span></span><span class="atv"><span class="atv">"POST"</span></span> <span class="atn"><span class="atn">target</span></span><span class="pun"><span class="pun">=</span></span><span class="atv"><span class="atv">"_blank"</span></span> <span class="atn"><span class="atn">accept-charset</span></span><span class="pun"><span class="pun">=</span></span><span class="atv"><span class="atv">"GBK"</span></span><span class="tag"><span class="tag">></span></span>
<span class="tag"><span class="tag"><input</span></span> <span class="atn"><span class="atn">name</span></span><span class="pun"><span class="pun">=</span></span><span class="atv"><span class="atv">"optEmail"</span></span> <span class="atn"><span class="atn">type</span></span><span class="pun"><span class="pun">=</span></span><span class="atv"><span class="atv">"hidden"</span></span> <span class="atn"><span class="atn">value</span></span><span class="pun"><span class="pun">=</span></span><span class="atv"><span class="atv">"你的<a href="http://www.goodziyuan.com/archives/tag/%e6%94%af%e4%bb%98%e5%ae%9d" title="查看更多关于支付宝的文章" target="_blank">支付宝</a>账号"</span></span> <span class="tag"><span class="tag">/></span></span>
<span class="tag"><span class="tag"><input</span></span> <span class="atn"><span class="atn">name</span></span><span class="pun"><span class="pun">=</span></span><span class="atv"><span class="atv">"payAmount"</span></span> <span class="atn"><span class="atn">type</span></span><span class="pun"><span class="pun">=</span></span><span class="atv"><span class="atv">"hidden"</span></span> <span class="atn"><span class="atn">value</span></span><span class="pun"><span class="pun">=</span></span><span class="atv"><span class="atv">"默认的捐赠金额"</span></span> <span class="tag"><span class="tag">/></span></span>
<span class="tag"><span class="tag"><input</span></span> <span class="atn"><span class="atn">id</span></span><span class="pun"><span class="pun">=</span></span><span class="atv"><span class="atv">"title"</span></span> <span class="atn"><span class="atn">name</span></span><span class="pun"><span class="pun">=</span></span><span class="atv"><span class="atv">"title"</span></span> <span class="atn"><span class="atn">type</span></span><span class="pun"><span class="pun">=</span></span><span class="atv"><span class="atv">"hidden"</span></span> <span class="atn"><span class="atn">value</span></span><span class="pun"><span class="pun">=</span></span><span class="atv"><span class="atv">"默认显示的付款说明"</span></span> <span class="tag"><span class="tag">/></span></span>
<span class="tag"><span class="tag"><input</span></span> <span class="atn"><span class="atn">name</span></span><span class="pun"><span class="pun">=</span></span><span class="atv"><span class="atv">"memo"</span></span> <span class="atn"><span class="atn">type</span></span><span class="pun"><span class="pun">=</span></span><span class="atv"><span class="atv">"hidden"</span></span> <span class="atn"><span class="atn">value</span></span><span class="pun"><span class="pun">=</span></span><span class="atv"><span class="atv">"备注"</span></span> <span class="tag"><span class="tag">/></span></span>
<span class="tag"><span class="tag"><input</span></span> <span class="atn"><span class="atn">name</span></span><span class="pun"><span class="pun">=</span></span><span class="atv"><span class="atv">"pay"</span></span> <span class="atn"><span class="atn">type</span></span><span class="pun"><span class="pun">=</span></span><span class="atv"><span class="atv">"image"</span></span> <span class="atn"><span class="atn">value</span></span><span class="pun"><span class="pun">=</span></span><span class="atv"><span class="atv">"转账"</span></span> <span class="atn"><span class="atn">src</span></span><span class="pun"><span class="pun">=</span></span><span class="atv"><span class="atv">"https://img.alipay.com/sys/personalprod/style/mc/btn-index.png"</span></span> <span class="tag"><span class="tag">/></span></span>
<span class="tag"><span class="tag"></form></span></span>
代码中的图片链接https://img.alipay.com/sys/personalprod/style/mc/btn-index.png是指向TA付款
如果想使用捐款本站,则可以使用这个链接:http://file.arefly.com/alipay.png

演示

给你的网站添加支付宝即时到帐按钮

 


好资源 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明给你的网站添加支付宝即时到帐按钮
喜欢 (29)
[捐赠网站,支持好资源!]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(5)个小伙伴在吐槽
  1. itsmalldog
    收藏啦,哈哈
    上官大人2014-11-23 16:32 回复 Windows 7 | Firefox浏览器 32.0
  2. 这个还能用吗?
    wuyou3872015-11-18 22:04 回复 Windows 7 | Chrome 45.0.2454.101
  3. 这个还能用吗?
    lay2015-12-02 08:50 回复 Windows 10 | Chrome 46.0.2490.80
  4. 看样子不错
    goodman20162016-03-27 10:37 回复 Windows 10 | Chrome 45.0.2454.101
  5. 先试试吧
    zq_1002018-04-28 15:05 回复 Windows 10 | Firefox浏览器 59.0