안녕하세요 Ransiee님!
확인한 바로는 첫 시도 이후 시도된 결제가 없습니다.
또한 해당 토큰으로 다시 진행이 됐다면 최초 결제는 정상적으로 진행이 된 후에 나머지 결제문에 문제가 있어야 되는데,
최초의 결제에서 아이템 지급이 되질 않습니다.
// 코드
BackendReturnObject bro = Backend.Receipt.IsValidateGooglePurchase(args.purchasedProduct.receipt, “receiptDescription”, false);
{
if (bro.IsSuccess())
{
string newString = args.purchasedProduct.definition.id;
Param param = new Param();
param.Add(newString, “ProductName”);
SendQueue.Enqueue(Backend.GameLog.InsertLog, “buy_Sucesses_Server”, param, (callback) => { });
// 다이아
if (String.Equals(args.purchasedProduct.definition.id, diamond5, StringComparison.Ordinal)) { LobbyManager.MyInstance.buyDiamond(0); }
else if (String.Equals(args.purchasedProduct.definition.id, diamond10, StringComparison.Ordinal)) { LobbyManager.MyInstance.buyDiamond(1); }
else if (String.Equals(args.purchasedProduct.definition.id, diamond50, StringComparison.Ordinal)) { LobbyManager.MyInstance.buyDiamond(2); }
else if (String.Equals(args.purchasedProduct.definition.id, diamond100, StringComparison.Ordinal)) { LobbyManager.MyInstance.buyDiamond(3); }
// 크리스탈
else if (String.Equals(args.purchasedProduct.definition.id, cristal1, StringComparison.Ordinal)) { LobbyManager.MyInstance.buycristal(0); }
else if (String.Equals(args.purchasedProduct.definition.id, cristal2, StringComparison.Ordinal)) { LobbyManager.MyInstance.buycristal(1); }
else if (String.Equals(args.purchasedProduct.definition.id, cristal3, StringComparison.Ordinal)) { LobbyManager.MyInstance.buycristal(2); }
else if (String.Equals(args.purchasedProduct.definition.id, cristal4, StringComparison.Ordinal)) { LobbyManager.MyInstance.buycristal(3); }
// 등등
// 연금
else if (String.Equals(args.purchasedProduct.definition.id, insurance1, StringComparison.Ordinal)) { LobbyManager.MyInstance.BuyInsurance(0); }
else if (String.Equals(args.purchasedProduct.definition.id, insurance2, StringComparison.Ordinal)) { LobbyManager.MyInstance.BuyInsurance(1); }
}
else
{
Debug.Log(string.Format("결제실패 : '{0}'", args.purchasedProduct.definition.id));
Debug.Log(bro.GetMessage());
}
}