Package com.razorpay
Class Utils
java.lang.Object
com.razorpay.Utils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic booleanverifyPaymentLink(org.json.JSONObject attributes, String apiSecret) static booleanverifyPaymentSignature(org.json.JSONObject attributes, String apiSecret) static booleanverifySignature(String payload, String expectedSignature, String secret) static booleanverifySubscription(org.json.JSONObject attributes, String apiSecret) static booleanverifyWebhookSignature(String payload, String expectedSignature, String webhookSecret)
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
verifyPaymentSignature
public static boolean verifyPaymentSignature(org.json.JSONObject attributes, String apiSecret) throws RazorpayException - Throws:
RazorpayException
-
verifySubscription
public static boolean verifySubscription(org.json.JSONObject attributes, String apiSecret) throws RazorpayException - Throws:
RazorpayException
-
verifyPaymentLink
public static boolean verifyPaymentLink(org.json.JSONObject attributes, String apiSecret) throws RazorpayException - Throws:
RazorpayException
-
verifyWebhookSignature
public static boolean verifyWebhookSignature(String payload, String expectedSignature, String webhookSecret) throws RazorpayException - Throws:
RazorpayException
-
verifySignature
public static boolean verifySignature(String payload, String expectedSignature, String secret) throws RazorpayException - Throws:
RazorpayException
-
getHash
- Throws:
RazorpayException
-