- 浏览: 629949 次
- 来自: 信阳
-
文章分类
最新评论
-
贝塔ZQ:
导出数据到excel文档中,可以使用pageoffice插件实 ...
Java POI 数据导出到Excel 2010 -
熊佳佳:
key是需要向支付宝购买额度的
支付宝即时到帐接口调试入口页面 -
zhuzuofei:
你好,你代码中提供的pid,key好像是无效的...
支付宝即时到帐接口调试入口页面 -
xingxing:
光有图没有解决方案......
centOS setup 命令 设置网络参数 -
atgoingguoat:
...
Android:简单的图片浏览器

基础配置类
package com.alipay.config; /* * *类名:AlipayConfig *功能:基础配置类 *详细:设置帐户有关信息及返回路径 *版本:3.2 *日期:2011-03-17 *说明: *以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。 *该代码仅供学习和研究支付宝接口使用,只是提供一个参考。 *提示:如何获取安全校验码和合作身份者ID *1.用您的签约支付宝账号登录支付宝网站(www.alipay.com) *2.点击“商家服务”(https://b.alipay.com/order/myOrder.htm) *3.点击“查询合作者身份(PID)”、“查询安全校验码(Key)” *安全校验码查看时,输入支付密码后,页面呈灰色的现象,怎么办? *解决方法: *1、检查浏览器配置,不让浏览器做弹框屏蔽设置 *2、更换浏览器或电脑,重新登录查询。 */ public class AlipayConfig { //↓↓↓↓↓↓↓↓↓↓请在这里配置您的基本信息↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ // 合作身份者ID,以2088开头由16位纯数字组成的字符串 public static String partner = "2088701405650194"; // 交易安全检验码,由数字和字母组成的32位字符串 public static String key = "ko7z9lsiva3t4xucpcz08ca6va7z5wsz"; // 签约支付宝账号或卖家收款支付宝帐户 public static String seller_email = "feiwenadmin@126.com"; // 支付宝服务器通知的页面 要用 http://格式的完整路径,不允许加?id=123这类自定义参数 // 必须保证其地址能够在互联网中访问的到 public static String notify_url = "https://www.feiwen.me/notify_url.jsp"; // 当前页面跳转后的页面 要用 http://格式的完整路径,不允许加?id=123这类自定义参数 // 域名不能写成http://localhost/create_direct_pay_by_user_jsp_utf8/return_url.jsp ,否则会导致return_url执行无效 public static String return_url = "https://www.feiwen.me/return_url.jsp"; //↑↑↑↑↑↑↑↑↑↑请在这里配置您的基本信息↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑ // 调试用,创建TXT日志路径 public static String log_path = "D:\\alipay_log_" + System.currentTimeMillis()+".txt"; // 字符编码格式 目前支持 gbk 或 utf-8 public static String input_charset = "UTF-8"; // 签名方式 不需修改 public static String sign_type = "MD5"; //访问模式,根据自己的服务器是否支持ssl访问,若支持请选择https;若不支持请选择http public static String transport = "https"; }
<% /* * *功能:支付宝即时到帐接口调试入口页面 *版本:3.2 *日期:2011-03-17 *说明: *以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。 */ %> <%@ page language="java" contentType="text/html; charset=gbk" pageEncoding="gbk"%> <%@ page import="com.alipay.services.*"%> <%@ page import="com.alipay.util.*"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gbk"> <title>支付宝即时到帐接口</title> <script language=JavaScript> function CheckForm() { if (document.alipayment.subject.value.length == 0) { alert("请输入商品名称."); document.alipayment.subject.focus(); return false; } if (document.alipayment.total_fee.value.length == 0) { alert("请输入付款金额."); document.alipayment.total_fee.focus(); return false; } var reg = new RegExp(/^\d*\.?\d{0,2}$/); if (! reg.test(document.alipayment.total_fee.value)) { alert("请正确输入付款金额"); document.alipayment.total_fee.focus(); return false; } if (Number(document.alipayment.total_fee.value) < 0.01) { alert("付款金额金额最小是0.01."); document.alipayment.total_fee.focus(); return false; } function getStrLength(value){ return value.replace(/[^\x00-\xFF]/g,'**').length; } if(getStrLength(document.alipayment.alibody.value) > 200){ alert("备注过长!请在100个汉字以内"); document.alipayment.alibody.focus(); return false; } if(getStrLength(document.alipayment.subject.value) > 256){ alert("标题过长!请在128个汉字以内"); document.alipayment.subject.focus(); return false; } document.aplipayment.alibody.value = document.aplipayment.alibody.value.replace(/\n/g,''); } </script> <style> * { margin: 0; padding: 0; } ul,ol { list-style: none; } .title { color: #ADADAD; font-size: 14px; font-weight: bold; padding: 8px 16px 5px 10px; } .hidden { display: none; } .new-btn-login-sp { border: 1px solid #D74C00; padding: 1px; display: inline-block; } .new-btn-login { background-color: transparent; background-image: url("images/new-btn-fixed.png"); border: medium none; } .new-btn-login { background-position: 0 -198px; width: 82px; color: #FFFFFF; font-weight: bold; height: 28px; line-height: 28px; padding: 0 10px 3px; } .new-btn-login:hover { background-position: 0 -167px; width: 82px; color: #FFFFFF; font-weight: bold; height: 28px; line-height: 28px; padding: 0 10px 3px; } .bank-list { overflow: hidden; margin-top: 5px; } .bank-list li { float: left; width: 153px; margin-bottom: 5px; } #main { width: 750px; margin: 0 auto; font-size: 14px; font-family: '宋体'; } #logo { background-color: transparent; background-image: url("images/new-btn-fixed.png"); border: medium none; background-position: 0 0; width: 166px; height: 35px; float: left; } .red-star { color: #f00; width: 10px; display: inline-block; } .null-star { color: #fff; } .content { margin-top: 5px; } .content dt { width: 100px; display: inline-block; text-align: right; float: left; } .content dd { margin-left: 100px; margin-bottom: 5px; } #foot { margin-top: 10px; } .foot-ul li { text-align: center; } .note-help { color: #999999; font-size: 12px; line-height: 130%; padding-left: 3px; } .cashier-nav { font-size: 14px; margin: 15px 0 10px; text-align: left; height: 30px; border-bottom: solid 2px #CFD2D7; } .cashier-nav ol li { float: left; } .cashier-nav li.current { color: #AB4400; font-weight: bold; } .cashier-nav li.last { clear: right; } .alipay_link { text-align: right; } .alipay_link a:link { text-decoration: none; color: #8D8D8D; } .alipay_link a:visited { text-decoration: none; color: #8D8D8D; } </style> </head> <body text=#000000 bgColor=#ffffff leftMargin=0 topMargin=4> [align=center;]确认付款</button> </span></dd> </dl> [/align] </form> <div id="foot"> <ul class="foot-ul"> <li><font class=note-help>如果您点击“确认付款”按钮,即表示您同意向卖家购买此物品。 您有责任查阅完整的物品登录资料,包括卖家的说明和接受的付款方式。卖家必须承担物品信息正确登录的责任! </font></li> [*]支付宝版权所有 2011-2015 ALIPAY.COM </ul> <ul> </div> </div> </body> </html>
发表评论
-
Struts2 spring Hibernate 案例
2013-06-05 11:34 7171.jsp网站案例(如果不能运行,请导入相应的jar包) -
简单购物车
2013-04-24 09:37 777第一版 第二版加入了分页查询使用SSH框架,类库有点大, ... -
MyBatis 官方例子
2012-10-10 11:25 526http://code.google.com/p/myba ... -
Flex案例
2012-09-22 15:31 859http://www.baitw.com/ ... -
排名系统
2012-07-29 05:12 757package com.demo.hibernate.serv ... -
web项目整合dwr
2012-07-17 17:49 830在web.xml中加入dwr的Servlet <ser ... -
dwr与spring整合
2012-07-17 17:40 804//-------------------------发送简单 ... -
在web项目中引入spring
2012-07-16 10:13 1055在web.xml中添加 <!-- 配置Spring配置文 ... -
下载文件Servlet
2012-07-04 17:31 871package com.baitw.struts.utils; ... -
基于Servlet和Properties的JSP聊天室案例
2012-04-29 18:11 1529package com.demo.service; im ... -
Struts2+Spring+Hibernate分页查询
2012-03-15 14:23 4114<%@ page language="jav ... -
支付宝通知页面notify_url、返回页面return_url
2011-12-27 10:43 109758返回页面(return_url文 ... -
支付宝即时到帐接口alipayto.jsp
2011-12-26 11:23 2545<% /* * *功能:即时到帐接口接入页 ... -
信贷管理系统
2011-12-19 17:09 1153源码 -
SSH1/2 J2EE 纯Java版分页查询
2011-11-30 16:58 3606实体bean---------> PageBean.ja ... -
SSH2集成需要在web.xml中的配置
2011-11-30 13:24 1031<?xml version="1.0" ...
相关推荐
' *功能:支付宝即时到账交易接口调试入口页面 ' *版本:3.4 ' *日期:2016-03-08 ' *说明: ' *以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该...
### 支付宝通用即时到账接口集成教程_PHP版本 #### 一、介绍 **1.1 类型** 本文档涉及的接口类型为“通用...通过上述步骤,开发者可以顺利完成支付宝通用即时到账接口的集成与调试,实现安全、高效的在线支付功能。
利用支付宝提供的接口通过http传输协议实现免签约即时到帐收款接口 ─────── 代码文件结构 ─────── Demo ├log┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈日志文件夹 │ ├Config.asp ┈┈┈┈┈┈┈┈...
该压缩包文件“最新支付宝微信免签即时到帐源码 v0.2.8.zip”包含了一套用于实现支付宝和微信支付的免签约即时到账功能的源代码。这个系统允许商家在没有正式签约支付宝和微信支付的情况下,也能接收来自这两个平台...