I have checked wheather I have called purchase function twice or virtual currency function twice . I found that these function are called only once but virtual currency is subtracted 1000 instead of 500 .
What can be the cause of this strange problem ?
How can I fix This ?