All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.binarywang.wxpay.bean.result.WxPayUnifiedOrderResult Maven / Gradle / Ivy

There is a newer version: 4.6.9.B
Show newest version
package com.github.binarywang.wxpay.bean.result;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 
 * 在发起微信支付前,需要调用统一下单接口,获取"预支付交易会话标识"返回的结果
 * 统一下单(详见https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_1)
 * 
* * @author chanjarster */ @Data @EqualsAndHashCode(callSuper = true) @NoArgsConstructor @XStreamAlias("xml") public class WxPayUnifiedOrderResult extends BaseWxPayResult { /** * 微信生成的预支付回话标识,用于后续接口调用中使用,该值有效期为2小时 */ @XStreamAlias("prepay_id") private String prepayId; /** * 交易类型,取值为:JSAPI,NATIVE,APP等 */ @XStreamAlias("trade_type") private String tradeType; /** * mweb_url 支付跳转链接 */ @XStreamAlias("mweb_url") private String mwebUrl; /** * trade_type为NATIVE时有返回,用于生成二维码,展示给用户进行扫码支付 */ @XStreamAlias("code_url") private String codeURL; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy