Fixed a bug in the paymentmethod payment xml builder