I have a scenario where i have to generate and verify the one-time-password(OTP) by providing my mobile number.like what we are getting for payment confirmation OTP in real time.can anyone please say how to configure and proceed further.
I consider that you want to send SMS to the mobile number from Pega.
Yes, We can achieve that in Pega. But for sending OTPs, you need an external service provider like Twillio, MSG91, etc to send SMS to the respective number.
Give a try to https://www.twilio.com/ as they might provide free SMS credits to try their service. Once you register to the provider, they might provide an API key, an endpoint, and SDKs for integration.
You can create an Activity rule and connect REST rule in Pega to hit their service endpoint with required Params such as phone number, API key as mentioned by the provider document.
I hope I helped you a little. Let me know if you have any more queries!
It is not mandatory to create a separate ruleset for this. But creating separate ruleset for each integration helps in improving modularity and maintenance of the application, which is also suggested by Pega.
Let me know if you have any questions about the above.