DTDAntiCheat
module.verifyPayment(completionHandler: @escaping (DTDVerifyResponse) -> Void)
method immediately during the transaction processing, e.g.:DTDVerifyResponse
receiptStatus
DTDReceiptStatus
that represents the result of the transaction validation.verificationResult
DTDReceiptStatus
receiptValid
receiptNotValid
receiptServerError
receiptSandbox
receiptInternalError
receiptNotValid
or receiptSandbox
as a result of the validation.(void)verifyPaymentCompletion:( void (^ _Nonnull)(DTDVerifyResponse * _Nonnull))completionHandler;
method immediately during the transaction processing, e.g.:DTDVerifyResponse
receiptStatus
DTDReceiptStatus
that represents the result of the transaction validation.verificationResult
DTDReceiptStatus
receiptValid
receiptNotValid
receiptServerError
receiptSandbox
receiptInternalError
receiptNotValid
or receiptSandbox
as a result of the validation.onActivityResult
, validate it by calling the following method: verifyPayment(receipt: String, signature: String, publicKey: String, completionHandler:(DTDVerifyResponse) -> Unit)
immediately during the transaction processing, e.g.:DTDVerifyResponse
receiptStatus
DTDReceiptStatus
that represents the result of the transaction validation.verificationResult
DTDReceiptStatus
receiptValid
receiptNotValid
receiptServerError
receiptInternalError
receiptNotValid
as a result of the validation.onActivityResult
, validate it by calling the following method: verifyPayment(receipt: String, signature: String, publicKey: String, completionHandler:(DTDVerifyResponse) -> Unit)
immediately during the transaction processing, e.g.:DTDVerifyResponse
receiptStatus
DTDReceiptStatus
that represents the result of the transaction validation.verificationResult
DTDReceiptStatus
receiptValid
receiptNotValid
receiptServerError
receiptInternalError
receiptNotValid
as a result of the validation.Task<DTDReceiptStatus> VerifyPayment(string: receipt)
method. As an argument pass the PurchaseResults.ReceiptXml
property. More information about it here.DTDVerifyResponse
ReceiptStatus
DTDReceiptStatus
that represents the result of the transaction validation.VerificationResult
DTDReceiptStatus
Valid = 0L
Invalid = 1L
ServerError = 2L
InternalError = 4L
Invalid
as a result of the validation.void VerifyPayment(string publicKey, string receipt, Action completionHandler)
void VerifyPayment(string publicKey, string receipt, string signature,Action<DTDVerifyResponse> completionHandler)
when handling the transaction.void VerifyPayment(string receipt, Action completionHandler)
void VerifyPayment(string receipt, Action completionHandler)
DTDVerifyResponse
receiptStatus
DTDReceiptStatus
that represents the result of the transaction validation.verificationResult
DTDReceiptStatus
receiptValid
receiptNotValid
receiptServerError
receiptSandbox
receiptInternalError
receiptNotValid
or receiptSandbox
as a result of the validation.