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

org.yes.tools.pay.module.request.BToCPayRequest Maven / Gradle / Ivy

There is a newer version: 2.0.4
Show newest version
package org.yes.tools.pay.module.request;

import lombok.Data;
import lombok.experimental.Accessors;
import org.yes.tools.pay.config.PayConfig;

@Data
@Accessors(chain = true)
public class BToCPayRequest {
    private static final long serialVersionUID = 522565152886671899L;

    //商户号
    private String merchantCode;
    //终端号
    private String terminalCode;
    //交易金额 单位:分
    private Integer transactionAmount;
    //	交易币种
    private String transactionCurrencyCode;
    //	商户订单号 全局唯一,不可重复,长度不超过50位
    private String merchantOrderId;
    //商户备注 长度不超过50位
    private String merchantRemark;
    //支付方式
    private String payMode;
    //	支付码
    private String payCode;
    //请求系统预留字段
    private String srcReserve;
    //	门店号
    private String storeId;
    //	操作员编号
    private String operatorId;
    //设备类型
    private String deviceType;
    //IP
    private String ip;
    //调用方式
    private String invocationMode;


    public void checkAndSign(PayConfig payConfig) {
        this.merchantOrderId = payConfig.getSourceSn() + this.merchantOrderId;
        //人民币
        this.transactionCurrencyCode = "156";
        this.payMode = "CODE_SCAN";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy