updated the generate_payment_xml method