Windows 8.1 Validation of payments

Payments validation

To be protected from fraudulent transactions, we recommend you to use devtodev Anticheat service

Use this method, and devtodev will check the transaction validity with the payment platform, and the response will be returned to the application.

Call following method when Windows Store returns receipt:

DevToDev.Cheat.VerifyReceipt(string receipt, OnReceiptVerifyCallback callback);

Result can take one of following values:

public enum ReceiptVerificationStatus {
                                        ReceiptValid,
                                        ReceiptNotValid,
                                        ReceiptServerError,
                                        ReceiptSandbox,
                                        ReceiptInternalError
};

In case of successful check call following main SDK method:

DevToDev.SDK.RealPayment(string pOrderId, float pInAppPrice, string pProductId, string pInAppCurrencyISOCode);

Time cheats check

To check for time cheats call checkTime method every time when app is being launched

DevToDev.Cheat.CheckTime(OnTimeVerifyCallback callback);

Result can take one of following values:

public enum TimeVerificationStatus {
                                     TimeValid,
                                     TimeForward,
                                     TimeRewind
};
Secondary Methods
Checking the events