Certified GKH Gardening Expert
Once pollen from a male stamen lands on the stigma of the female reproductive organs it will develop into the seeds within the ovary of the plant. Usually on the bottom of the flower.
Once this ripens, it will turn colors and dry. You will need to harvest before they fall out of the pod.
This article will give more information on the plant: