I created apex class with @RestResource
. And @HttpPost
method to use this code as Resource as the webhook URL, but the class is not invoking, please help here
CLASS:
@RestResource(urlMapping='/Razorpay/*')
global class WebhooK_for_RazorPay
{
@HttpPost
global static void ResponseFromPaymentLInk()
{
RestRequest request = RestContext.request;
system.debug('The request '+ request );
RestResponse response = RestContext.response;
system.debug('The response '+ response );
}
}
Webhook URL:
https://techforceservices18-dev-ed.develop.my.site.com/services/apexrest/Razorpay
used in Razorpay