Regarding Custom Payment Gateway

Hello!
I wanted to integrate Razorpay. So for that i created my own API , tested it on postman but its working but on adding that custom API on snipcart payment gateway its not working.