Date Interval from External API

Hello,

My app schedules meetings. I have to use Razorpay, instead of Stripe because of Indian audience. With Razorpay I have to open a new window and come back to my page with a callback url. Rayzorpay API has a ‘notes’ field where I can send data for further use which is returned back to me if the payment is successful. Now I can’t send the date range as it is, as it contains double quotes and messes up the JSON.
How can I send a date range to the API and so that I can get it back? Also, how can use this data to be saved as a date range in database?
I tried to replace the double quotes with asterisk, because of which I can send the range, But I am struggling with how to process it.

1 Like

One hacky way to do it is- Store the date range into the database along with the unique id and send that unique id to the razorpay.

When you get a callback, fetch data from temp DB using the unique id.

Thanks for the reply. What I did was, I sent the two dates for the date range to razorpay and got it back. Turns out I could send upto 15 fields in the notes section

1 Like

How to get the API updated every second without using “Do every seconds” ?