dooboolab-community / flutter_inapp_purchase

(Sun Rised!) Flutter plugin for In App Purchase.
MIT License
549 stars 236 forks source link

FlutterInappPurchase.purchaseUpdated don't work for subscription #483

Open KyawSoeW1n opened 3 months ago

KyawSoeW1n commented 3 months ago

flutter_inapp_purchase: ^5.6.1

(iOS)

Expected behavior - FlutterInappPurchase.purchaseUpdated listener work for subscription is success. Actual behavior - FlutterInappPurchase.purchaseUpdated listener don't work even subscription is success.

Tested environment - Simulator

Steps to reproduce the behavior - Make a subscription and wait for result.

anilthummar commented 2 months ago

@KyawSoeW1n @arisbartee @LinusU @emostar @nucleartux Why my payment not work in ios device , Always getting CANCEL keyword,

purchaseErrorSubscription = FlutterInappPurchase.purchaseError.listen((purchaseError) { debugPrint('purchase-error: ${purchaseError?.code}');

  So using this code getting close my transaction process, Please help me 
KyawSoeW1n commented 2 months ago

You have to make product id in apple store and use that id to purchase or subscription. For me , stream are not working. But payment is success.

KyawSoeW1n commented 2 months ago

@anilthummar only FlutterInappPurchase.connectionUpdated and FlutterInappPurchase.purchaseUpdated are not working.