// Deserialize receipt
var googleReceipt = GooglePurchase.FromJson(e.purchasedProduct.receipt);
// Invoke receipt validation
// This will not only validate a receipt, but will also grant player corresponding items
// only if receipt is valid.


PlayFabClientAPI.ValidateGooglePlayPurchase(new ValidateGooglePlayPurchaseRequest() {
// Pass in currency code in ISO format
CurrencyCode = e.purchasedProduct.metadata.isoCurrencyCode,
// Convert and set Purchase price
PurchasePrice = (uint)(e.purchasedProduct.metadata.localizedPrice * 100),
// Pass in the receipt
ReceiptJson = googleReceipt.PayloadData.json,
// Pass in the signature
Signature = googleReceipt.PayloadData.signature
}, result => Debug.Log("Validation successful!"),
error => Debug.Log("Validation failed: " + error.GenerateErrorReport())
);

return PurchaseProcessingResult.Complete;
#endif

#if UNITY_IOS
var appleReceipt = e.purchasedProduct.receipt;



PlayFabClientAPI.ValidateIOSReceipt(new ValidateIOSReceiptRequest() {
// Pass in currency code in ISO format
CurrencyCode = e.purchasedProduct.metadata.isoCurrencyCode,
// Convert and set Purchase price
PurchasePrice = (uint)(e.purchasedProduct.metadata.localizedPrice * 100),
// Pass in the receipt
ReceiptJson = googleReceipt.PayloadData.json,
// Pass in the signature
Signature = googleReceipt.PayloadData.signature
}, result => Debug.Log("Validation successful!"),
error => Debug.Log("Validation failed: " + error.GenerateErrorReport())
);

return PurchaseProcessingResult.Complete;



์ €๊ธฐ var appleReceipt = e.purchastedprodduct ์ด๊ฑฐ ์•„๋‹Œ๊ฑฐ๊ฐ™์€๋ฐ ์ „์ฒด์ ์œผ๋กœ ์˜์ˆ˜์ฆ ์ฒ˜๋ฆฌ ์–ด๋–ค์‹์œผ๋กœ ์จ์•ผํ•˜๋Š”์ง€ ์ข€ ์•Œ๋ ค์ค„์ˆ˜์žˆ๋‚˜์šฉ ์‚ฌ๋ก€๋Š” ๋‘๋‘‘ํžˆ