请求快钱的参数 快钱返回的参数 - package com.bitmyth.pay.domain;
-
- import com.bitmyth.util.MD5;
-
-
-
- public class PayBillResponse {
- private String merchant_key = "";
- private String merchant_id = "";
- private String orderid = "";
- private String amount = "";
- private String dealdate = "";
- private String succeed = "";
- private String mac = "";
- private String merchant_param = "";
- private String couponid = "";
- private String couponvalue = "";
- public String getMerchant_key() {
- return merchant_key;
- }
- public void setMerchant_key(String merchant_key) {
- this.merchant_key = merchant_key;
- }
- public String getMerchant_id() {
- return merchant_id;
- }
- public void setMerchant_id(String merchant_id) {
- this.merchant_id = merchant_id;
- }
- public String getOrderid() {
- return orderid;
- }
- public void setOrderid(String orderid) {
- this.orderid = orderid;
- }
- public String getAmount() {
- return amount;
- }
- public void setAmount(String amount) {
- this.amount = amount;
- }
- public String getDealdate() {
- return dealdate;
- }
- public void setDealdate(String dealdate) {
- this.dealdate = dealdate;
- }
- public String getSucceed() {
- return succeed;
- }
- public void setSucceed(String succeed) {
- this.succeed = succeed;
- }
- public String getRemoteMac() {
- return mac;
- }
- public void setMac(String mac) {
- this.mac = mac;
- }
- public String getMerchant_param() {
- return merchant_param;
- }
- public void setMerchant_param(String merchant_param) {
- this.merchant_param = merchant_param;
- }
- public String getCouponid() {
- return couponid;
- }
- public void setCouponid(String couponid) {
- this.couponid = couponid;
- }
- public String getCouponvalue() {
- return couponvalue;
- }
- public void setCouponvalue(String couponvalue) {
- this.couponvalue = couponvalue;
- }
- public String getLocalMac(){
- String ScrtStr = "merchant_id="+this.merchant_id+"&orderid="+this.orderid+"&amount="+this.amount+"&date="+this.dealdate+"&succeed="+this.succeed+"&merchant_key="+this.merchant_key;
- String rest = MD5.getMD5Str(ScrtStr);
- return rest;
- }
- }
把这些参数条件用POST方法提交到快钱 - <%@page contentType="text/html; charset=GBK"%>
- <%@taglib uri="http://java./jsp/jstl/core" prefix="c"%>
- <%@ taglib uri="http://java./jsp/jstl/fmt" prefix="fmt" %>
- <%@ taglib uri="/WEB-INF/Token.tld" prefix="t"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www./TR/html4/loose.dtd">
- <html>
- <head>
- <title>鲜花预定</title>
- <meta http-equiv="Pragma" content="no-cache" />
- <meta http-equiv="Cache-Control" content="no-cache" />
- <meta http-equiv="Expires" content="0" />
- <mce:script type="text/javascript"><!--
- function goPayBill(){
- document.myform.submit();
- }
- // --></mce:script>
- </head>
- <body onload="goPayBill()">
- <form action="https://www./webapp/receiveMerchantInfoAction.do" method="post" name="myform">
- <input type="hidden" name="merchant_id" value="${pay.merchant_id}">
- <input type="hidden" name="merchant_key" value="${pay.merchant_key}">
- <input type="hidden" name="orderid" value="${pay.orderid}">
- <input type="hidden" name="amount" value="${pay.amount}">
- <input type="hidden" name="curr" value="${pay.curr}">
- <input type="hidden" name="isSupportDES" value="${pay.isSupportDES}">
- <input type="hidden" name="merchant_url" value="${pay.merchant_url}">
- <input type="hidden" name="pname" value="${pay.pname}">
- <input type="hidden" name="commodity_info" value="${pay.commodity_info}">
- <input type="hidden" name="merchant_param" value="${pay.merchant_param}">
- <input type="hidden" name="pemail" value="${pay.pemail}">
- <input type="hidden" name="pid" value="${pay.pid}">
- <input type="hidden" name="mac" value="${pay.mac}">
- </form>
- </body>
- </html>
这样就搞定了,快钱返回的参数上面已经给出,找个连接接着返回的参数就是了...
|