You need to make the payment before pay in date in case of position taken against share as margin.