Hi Shubhra, please refer this Payment Processor Tool Plugin and the sample app attached.
Additionally, check monitor → System logs for errors and provide those errors if any to assist you better. Thanks.