OTP Authentication for eccomerce platform

I am trying to automate ecommerce website , where i have to enter OTP which sent on registered mobile number
How can in automate the same