As the pods get ripe you will need to cover them with a paper bag or similar (not polythene). When they are fully ripe the slightest touch will cause the pods to open explosively and twist causing the ripe seeds to be violently dispersed. It is sometimes preferable to cut the pods off the plant before fully ripe and put them in a paper bag in a dry place. Any seeds shed will then be caught in the bag.