consumable plan purchase server side verifcation

i am implementing app in which i have implemented consumable plan purchase but whenever I sent consumable plan receipt to verify receipt url it gives error, my concern is how can I verify if consumable plan is valid or not on server side??