我有这个参数:
Parameters:
{"metodo"=>"cartao-credito",
"formaPagamento"=>{"cartao"=>{"parcelas"=>"1"}},
"tokenPagamento"=>"21162f8f1c2204a0c83fe9710437d5e1276f59fc"}
我需要将它们转换为像这样的xml:
<integracao>
<formaPagamento>
<metodo>cartao-credito</metodo>
<cartao>
<parcelas>2</parcelas>
</cartao>
</formaPagamento>
<tokenPagamento>21162f8f1c2204a0c83fe9710437d5e1276f59fc</tokenPagamento>
我该怎么做? 感谢