메신저를 사용하여 Google 서비스 테스트를위한 간단한 게임을 만들고, Google 게임 서비스를 위해 googleplayplugin을 사용하고 iab soomla 플러그인을 사용합니다. 모두 올바르게 구성되었다고 생각합니다. 내 nexus4에 게임을 설치하고 시작하면 로그인이 성공적으로 완료됩니다. 내가 구성한 것을 ("올바르게"?) 구입하려고하면 플레이 스토어 팝업이 나타나지만 내 문제가 있습니다. 팝업 메시지에 "오류 인증이 필요합니다 .Google 계정으로 로그인해야합니다." .Android에서 게임을 구입할 때 Soomla IAB 오류가 발생했습니다.
무엇이 부족합니까 ?? 이 시간을 잃어 버리는 Im, plz 도움. 메신저 내 이름이 보이기 때문에 내 Google 프로필로 로그인했습니다. 여기 항목 메신저
//i define the currency
public VirtualCurrency[] GetCurrencies() {
return new VirtualCurrency[]{HEART};
}
//the pack of currency that can be purchased
public VirtualCurrencyPack[] GetCurrencyPacks() {
return new VirtualCurrencyPack[] {HEART_PACK};
}
//
public const string HEART_ITEM_ID = "heart"; //in-game id
public const string HEART_PACK_PRODUCT_ID = "heart_1"; // the id on the play store
public static VirtualCurrency HEART = new VirtualCurrency(
"HEART", // name
"", // description
HEART_ITEM_ID // item id
);
public static VirtualCurrencyPack HEART_PACK = new VirtualCurrencyPack(
"1 heart", // name
"Add a heart.", // description
"heart_1", // item id
1, // number of currencies in the pack
HEART_ITEM_ID, // the currency associated with this pack
new PurchaseWithMarket(HEART_PACK_PRODUCT_ID, 0.50)
);
를 구입하려고하고 내가
StoreInventory.BuyItem (IAPGoogle.HEART_PACK.ItemId);