app/src/main/java/com/treslines/pagsegurodemo/PagSeguroBuyer.java
public String buildPagSeguroBuyerXml(){
        String xml ="    <sender>\n" +
                    "        <name>%s</name>\n" +
                    "        <bornDate>%s</bornDate>\n"+
                    "        <documents>\n" +
                    "            <document>\n"+
                    "                <type>CPF</type>\n"+
                    "                <value>%s</value>\n" +
                    "            </document>\n"+
                    "        </documents>\n"+
                    "        <email>%s</email>\n" +
                             phone.buildPagSeguroPhoneXml()+
                    "    </sender>\n";
        return String.format(xml, completeName, bornDate, cpf, email);
    }
/** returns the xml used to define a pagseguro buyer. You don't need to call this method.<br/>
     * It will be called from {@link PagSeguroCheckout}
     */
returns the xml used to define a pagseguro buyer. You don't need to call this method.
It will be called from  PagSeguroCheckout
returns the xml used to define a pagseguro buyer . You don ' t need to call this method . It will be called from PagSeguroCheckout
public String buildPagSeguroBuyerXml(){
        String xml ="    <sender>\n" +
                    "        <name>%s</name>\n" +
                    "        <bornDate>%s</bornDate>\n"+
                    "        <documents>\n" +
                    "            <document>\n"+
                    "                <type>CPF</type>\n"+
                    "                <value>%s</value>\n" +
                    "            </document>\n"+
                    "        </documents>\n"+
                    "        <email>%s</email>\n" +
                             phone.buildPagSeguroPhoneXml()+
                    "    </sender>\n";
        return String.format(xml, completeName, bornDate, cpf, email);
    }
public String buildPagSeguroBuyerXml ( ) { String xml = "    <sender>\n" + "        <name>%s</name>\n" + "        <bornDate>%s</bornDate>\n" + "        <documents>\n" + "            <document>\n" + "                <type>CPF</type>\n" + "                <value>%s</value>\n" + "            </document>\n" + "        </documents>\n" + "        <email>%s</email>\n" + phone . buildPagSeguroPhoneXml ( ) + "    </sender>\n" ; return String . format ( xml , completeName , bornDate , cpf , email ) ; }
returns the xml used to define a pagseguro buyer.
returns the xml used to define a pagseguro buyer .