The first one button which goes to the checkout page directly is the default shopify way with dynamically button of the shopify, the second button which gives a popup and ask for OTP is coming from the third party app which is GoKwik. For that you need to install a GoKwik buy buttons app and configurations.
Feel free to reach out if you have any questions or need assistance.
Best Regards,
DWS.