Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static String getDeditPaymentXml(String cardHolder, String cardNum, String cardSec, String cardExp,
            String cardPin) {
        StringBuffer buffer = new StringBuffer();
        buffer.append("<payment>");
        buffer.append("<type>Dedit</type>");
        buffer.append("<cardHolder>" + cardHolder + "</cardHolder>");
        buffer.append("<cardNum>" + cardNum + "</cardNum>");
        buffer.append("<cardSec>" + cardSec + "</cardSec>");
        buffer.append("<cardExp>" + cardExp + "</cardExp>");
        buffer.append("<cardPin>" + cardPin + "</cardPin>");
        buffer.append("</payment>");

        return buffer.toString();
    }
}