app/src/main/java/com/treslines/pagsegurodemo/PagSeguroItem.java
public String buildPagSeguroItemXml(){
        String item =   "        <item>\n" +
                        "            <id>%s</id>\n" +
                        "            <description>%s</description>\n" +
                        "            <amount>%s</amount>\n" +
                        "            <quantity>%s</quantity>\n" +
                        "            <weight>%s</weight>\n" +
                        "        </item>\n" ;
        return String.format(item, id, description, amount.toString(),String.valueOf(quantity),String.valueOf(weightInGramms));
    }
/** returns the xml used to define a pagseguro product. You don't need to call this method.<br/>
     * It will be called from {@link PagSeguroCheckout}
     */
returns the xml used to define a pagseguro product. You don't need to call this method.
It will be called from  PagSeguroCheckout
returns the xml used to define a pagseguro product . You don ' t need to call this method . It will be called from PagSeguroCheckout
public String buildPagSeguroItemXml(){
        String item =   "        <item>\n" +
                        "            <id>%s</id>\n" +
                        "            <description>%s</description>\n" +
                        "            <amount>%s</amount>\n" +
                        "            <quantity>%s</quantity>\n" +
                        "            <weight>%s</weight>\n" +
                        "        </item>\n" ;
        return String.format(item, id, description, amount.toString(),String.valueOf(quantity),String.valueOf(weightInGramms));
    }
public String buildPagSeguroItemXml ( ) { String item = "        <item>\n" + "            <id>%s</id>\n" + "            <description>%s</description>\n" + "            <amount>%s</amount>\n" + "            <quantity>%s</quantity>\n" + "            <weight>%s</weight>\n" + "        </item>\n" ; return String . format ( item , id , description , amount . toString ( ) , String . valueOf ( quantity ) , String . valueOf ( weightInGramms ) ) ; }
returns the xml used to define a pagseguro product.
returns the xml used to define a pagseguro product .