A short put spread obligates you to buy the stock at strike price B if the option is assigned but gives you the right to sell stock at strike price A.
A short put spread is an alternative to the short put. In addition to selling a put with strike B, you’re buying the cheaper put with strike A to limit your risk if the stock goes down. But there’s a tradeoff — buying the put also reduces the net credit received when running the strategy.