Closed mrajecat closed 1 month ago
Oops, turns out to be a documentation issue
As per the documentation in the above link the customer information is given as
JSONObject customer = new JSONObject(); customer.put("name","+919999999999"); customer.put("contact","Gaurav Kumar"); customer.put("email","gaurav.kumar@example.com");
The name and contact values are wrong. On correcting them, the SMS is getting delivered.
Not an issue with the code. Sorry for the trouble. Thank you.
Hi,
We tried to use the RazorPaySDK to create a PaymentLink. The payment link gets created correctly. However, the SMS notification via SMS does not get delivered. We have tried with multiple numbers and it never works. We did specify sms option as "true" in the request JSON.
On calling the RazorPay API via Postman or any other client, the SMS gets delivered to those same numbers.
This can be easily verified using the sample code given for Standard payment link creation at https://github.com/razorpay/razorpay-java/blob/master/documents/paymentLink.md
Looks like there is an issue with SMS delivery functionality while generating PaymentLinks.