public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getHash(String payload,
String secret) |
static boolean |
verifyPaymentLink(org.json.JSONObject attributes,
String apiSecret) |
static boolean |
verifyPaymentSignature(org.json.JSONObject attributes,
String apiSecret) |
static boolean |
verifySignature(String payload,
String expectedSignature,
String secret) |
static boolean |
verifySubscription(org.json.JSONObject attributes,
String apiSecret) |
static boolean |
verifyWebhookSignature(String payload,
String expectedSignature,
String webhookSecret) |
public static boolean verifyPaymentSignature(org.json.JSONObject attributes,
String apiSecret)
throws RazorpayException
RazorpayExceptionpublic static boolean verifySubscription(org.json.JSONObject attributes,
String apiSecret)
throws RazorpayException
RazorpayExceptionpublic static boolean verifyPaymentLink(org.json.JSONObject attributes,
String apiSecret)
throws RazorpayException
RazorpayExceptionpublic static boolean verifyWebhookSignature(String payload, String expectedSignature, String webhookSecret) throws RazorpayException
RazorpayExceptionpublic static boolean verifySignature(String payload, String expectedSignature, String secret) throws RazorpayException
RazorpayExceptionpublic static String getHash(String payload, String secret) throws RazorpayException
RazorpayExceptionCopyright © 2023. All rights reserved.