人成视频无码免费|国产午夜精品二区三区|亚洲国产片论片在线播放|国内精品伊人久久久久av|一本久道久久综合婷婷国产|国产成人综合久久精品推荐|久久久久久av无码免费肉站|在线观看午夜无码高潮精品51

Amaze UI

最新簽單 新聞中心 互聯(lián)網(wǎng) 物聯(lián)網(wǎng) 移動(dòng)互聯(lián)網(wǎng) IT基礎(chǔ)服務(wù)

全部信息    APP    微信公眾號(hào)    手機(jī)網(wǎng)站   

網(wǎng)站首頁 >> 移動(dòng)互聯(lián)網(wǎng)相關(guān) >> 手機(jī)網(wǎng)站

快錢接口

...


請(qǐng)求快錢的參數(shù)

view plaincopy to clipboardprint?
package com.bitmyth.pay.domain;  
 
import com.bitmyth.util.MD5;  
/** 
 * 快錢接口REQUEST 
 */ 
public class PayBillRequest {  
    /** 
     * 商戶編號(hào) 
     */ 
    private String merchant_id = "";  
    /** 
     * 商戶密鑰 
     */ 
    private String merchant_key = "";  
    /** 
     * 訂單編號(hào) 
     */ 
    private String orderid = "";  
    /** 
     * 訂單金額 
     */ 
    private int amount = 0;  
    /** 
     * 貨幣類型,1為人民幣 
     */ 
    private String curr = "1";  
    /** 
     * 是否安全校驗(yàn),2為必校驗(yàn),推薦 
     */ 
    private String isSupportDES = "2";  
    /** 
     * 支付結(jié)果返回地址 
     */ 
    private String merchant_url = "";  
    /** 
     * 支付人真實(shí)姓名 
     */ 
    private String pname = "";  
    /** 
     * 商品信息 
     */ 
    private String commodity_info = "";  
    /** 
     * 商戶私有參數(shù) 
     */ 
    private String merchant_param = "";  
    /** 
     * 傳遞email到快錢網(wǎng)關(guān)頁面 
     */ 
    private String pemail = "";  
    /** 
     * 代理/合作伙伴商戶編號(hào) 
     */ 
    private String pid = "";  
    /** 
     * 加密串 
     */ 
    private String mac = "";  
    public String getMerchant_id() {  
        return merchant_id;  
    }  
    public void setMerchant_id(String merchant_id) {  
        this.merchant_id = merchant_id;  
    }  
    public String getMerchant_key() {  
        return merchant_key;  
    }  
    public void setMerchant_key(String merchant_key) {  
        this.merchant_key = merchant_key;  
    }  
    public String getOrderid() {  
        return orderid;  
    }  
    public void setOrderid(String orderid) {  
        this.orderid = orderid;  
    }  
    public int getAmount() {  
        return amount;  
    }  
    public void setAmount(int amount) {  
        this.amount = amount;  
    }  
    public String getCurr() {  
        return curr;  
    }  
    public void setCurr(String curr) {  
        this.curr = curr;  
    }  
    public String getIsSupportDES() {  
        return isSupportDES;  
    }  
    public void setIsSupportDES(String isSupportDES) {  
        this.isSupportDES = isSupportDES;  
    }  
    public String getMerchant_url() {  
        return merchant_url;  
    }  
    public void setMerchant_url(String merchant_url) {  
        this.merchant_url = merchant_url;  
    }  
    public String getPname() {  
        return pname;  
    }  
    public void setPname(String pname) {  
        this.pname = pname;  
    }  
    public String getCommodity_info() {  
        return commodity_info;  
    }  
    public void setCommodity_info(String commodity_info) {  
        this.commodity_info = commodity_info;  
    }  
    public String getMerchant_param() {  
        return merchant_param;  
    }  
    public void setMerchant_param(String merchant_param) {  
        this.merchant_param = merchant_param;  
    }  
    public String getPemail() {  
        return pemail;  
    }  
    public void setPemail(String pemail) {  
        this.pemail = pemail;  
    }  
    public String getPid() {  
        return pid;  
    }  
    public void setPid(String pid) {  
        this.pid = pid;  
    }  
    /** 
     * 這個(gè)方法一定要最后調(diào)用 
     * 生成加密串,注意順序 
     */ 
    public String getMac() {  
        String ScrtStr = "merchant_id=" + this.merchant_id + "&orderid=" + this.orderid  
        + "&amount=" + this.amount + "&merchant_url=" + this.merchant_url  
        + "&merchant_key=" + this.merchant_key;  
        mac = MD5.getMD5Str(ScrtStr);  
        return mac;  
    }  

package com.bitmyth.pay.domain;

import com.bitmyth.util.MD5;
/**
 * 快錢接口REQUEST
 */
public class PayBillRequest {
 /**
  * 商戶編號(hào)
  */
 private String merchant_id = "";
 /**
  * 商戶密鑰
  */
 private String merchant_key = "";
 /**
  * 訂單編號(hào)
  */
 private String orderid = "";
 /**
  * 訂單金額
  */
 private int amount = 0;
 /**
  * 貨幣類型,1為人民幣
  */
 private String curr = "1";
 /**
  * 是否安全校驗(yàn),2為必校驗(yàn),推薦
  */
 private String isSupportDES = "2";
 /**
  * 支付結(jié)果返回地址
  */
 private String merchant_url = "";
 /**
  * 支付人真實(shí)姓名
  */
 private String pname = "";
 /**
  * 商品信息
  */
 private String commodity_info = "";
 /**
  * 商戶私有參數(shù)
  */
 private String merchant_param = "";
 /**
  * 傳遞email到快錢網(wǎng)關(guān)頁面
  */
 private String pemail = "";
 /**
  * 代理/合作伙伴商戶編號(hào)
  */
 private String pid = "";
 /**
  * 加密串
  */
 private String mac = "";
 public String getMerchant_id() {
  return merchant_id;
 }
 public void setMerchant_id(String merchant_id) {
  this.merchant_id = merchant_id;
 }
 public String getMerchant_key() {
  return merchant_key;
 }
 public void setMerchant_key(String merchant_key) {
  this.merchant_key = merchant_key;
 }
 public String getOrderid() {
  return orderid;
 }
 public void setOrderid(String orderid) {
  this.orderid = orderid;
 }
 public int getAmount() {
  return amount;
 }
 public void setAmount(int amount) {
  this.amount = amount;
 }
 public String getCurr() {
  return curr;
 }
 public void setCurr(String curr) {
  this.curr = curr;
 }
 public String getIsSupportDES() {
  return isSupportDES;
 }
 public void setIsSupportDES(String isSupportDES) {
  this.isSupportDES = isSupportDES;
 }
 public String getMerchant_url() {
  return merchant_url;
 }
 public void setMerchant_url(String merchant_url) {
  this.merchant_url = merchant_url;
 }
 public String getPname() {
  return pname;
 }
 public void setPname(String pname) {
  this.pname = pname;
 }
 public String getCommodity_info() {
  return commodity_info;
 }
 public void setCommodity_info(String commodity_info) {
  this.commodity_info = commodity_info;
 }
 public String getMerchant_param() {
  return merchant_param;
 }
 public void setMerchant_param(String merchant_param) {
  this.merchant_param = merchant_param;
 }
 public String getPemail() {
  return pemail;
 }
 public void setPemail(String pemail) {
  this.pemail = pemail;
 }
 public String getPid() {
  return pid;
 }
 public void setPid(String pid) {
  this.pid = pid;
 }
 /**
  * 這個(gè)方法一定要最后調(diào)用
  * 生成加密串,注意順序
  */
 public String getMac() {
  String ScrtStr = "merchant_id=" + this.merchant_id + "&orderid=" + this.orderid
  + "&amount=" + this.amount + "&merchant_url=" + this.merchant_url
  + "&merchant_key=" + this.merchant_key;
  mac = MD5.getMD5Str(ScrtStr);
  return mac;
 }
}
 

快錢返回的參數(shù)

view plaincopy to clipboardprint?
package com.bitmyth.pay.domain;  
 
import com.bitmyth.util.MD5;  
/** 
 * 快錢接口RESPONSE 
 */ 
public class PayBillResponse {  
    private String merchant_key = "";  
    private String merchant_id = "";// 獲取商戶編號(hào)  
    private String orderid = "";// 獲取訂單編號(hào)  
    private String amount = "";// 獲取訂單金額  
    private String dealdate = "";// 獲取交易日期  
    private String succeed = "";// 獲取交易結(jié)果,Y成功,N失敗  
    private String mac = "";// 獲取安全加密串  
    private String merchant_param = "";// 獲取商戶私有參數(shù)  
    private String couponid = "";// 獲取優(yōu)惠券編碼  
    private String couponvalue = "";// 獲取優(yōu)惠券面額  
    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;  
    }  

package com.bitmyth.pay.domain;

import com.bitmyth.util.MD5;
/**
 * 快錢接口RESPONSE
 */
public class PayBillResponse {
 private String merchant_key = "";
 private String merchant_id = "";// 獲取商戶編號(hào)
 private String orderid = "";// 獲取訂單編號(hào)
 private String amount = "";// 獲取訂單金額
 private String dealdate = "";// 獲取交易日期
 private String succeed = "";// 獲取交易結(jié)果,Y成功,N失敗
 private String mac = "";// 獲取安全加密串
 private String merchant_param = "";// 獲取商戶私有參數(shù)
 private String couponid = "";// 獲取優(yōu)惠券編碼
 private String couponvalue = "";// 獲取優(yōu)惠券面額
 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;
 }
}
 

把這些參數(shù)條件用POST方法提交到快錢

view plaincopy to clipboardprint?
<%@page contentType="text/html; charset=GBK"%> 
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> 
<%@ taglib uri="/WEB-INF/Token.tld" prefix="t"%> 
 
 
 
鮮花預(yù)定 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
<%@page contentType="text/html; charset=GBK"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/Token.tld" prefix="t"%>



鮮花預(yù)定























 

這樣就搞定了,快錢返回的參數(shù)上面已經(jīng)給出,找個(gè)連接接著返回的參數(shù)就是了...

上一條:招商網(wǎng)上銀行接口(自己的網(wǎng)上銀行)

下一條:ASP字符串函數(shù)大全

衢州市| 丘北县| 教育| 梁平县| 饶平县| 肇东市| 泰和县| 眉山市| 灯塔市| 砚山县| 股票| 略阳县| 镇江市| 久治县| 静乐县| 长丰县| 漳平市| 海盐县| 抚宁县| 扎囊县| 夹江县| 西林县| 平凉市| 辽宁省| 巩义市| 措美县| 博白县| 鄄城县| 扶风县| 吴旗县| 兖州市| 阳新县| 共和县| 三河市| 洛浦县| 永福县| 沁源县| 保山市| 玉门市| 灵璧县| 噶尔县|