Inapp purchase receipt validation in ios

There is a below function for validating the receipt for in-app purchase in ios. it return 1 or 0 for the receipt is an valid or an invalid.

The function contains two parameter in which the first parameter “$purchase” is a receipt that you get from apple server when a user has make the in-app purchase from device.

Read More