Flutter sorunu çözdüğümü düşünüyorum. Gözden kacirdigim bir nokta varmış. uygulama tarafından alinan urunun onayını göndermemiz gerekiyormuş. aksi takdirde 3 gün icinde otomatik refund yapiliyormus.
paket aciklamasinda su kısmı yeni fark ettim.
Complete a purchase
The InAppPurchaseConnection.purchaseUpdatedStream will send purchase updates after you initiate the purchase flow using InAppPurchaseConnection.buyConsumable or InAppPurchaseConnection.buyNonConsumable. After delivering the content to the user, you need to call InAppPurchaseConnection.completePurchase to tell the GooglePlay and AppStore that the purchase has been finished.
WARNING! Failure to call InAppPurchaseConnection.completePurchase and get a successful response within 3 days of the purchase will result a refund.
Uygulamayi güncelledikten sonuclarini yazacağım.
kodlardaki degisiklik ise şöyle
/// Your own business logic to setup a consumable
verifyTamSurumPurchase() {
PurchaseDetails purchase = hasPurchased(tamSurumId);
if (purchase != null && purchase.status == PurchaseStatus.purchased) {
InAppPurchaseConnection.instance.completePurchase(purchase); // onayı burda verdim
isThereFullPayment = true;
}
return;
}