I am using the below URL for making payment
But out of 10, 9 times payment failed showing API error. But after attempting again with a delay of 2 seconds it gets paid in the second or third attempt. I am using the emulator for performing payment in the Asynctask method.
I have 3 questions:
1-> I want to know why it is not getting paid on the very first attempt.?
2-> How can we find the payment status of an order if payment gets failed from API.?
3-> Can any order be paid two times? Because sometimes I found two transaction details in a single order in order application. Please check the image.
Please answer my queries.