change the paymentType to object in angular