dooboolab-community / react-native-iap

In App Purchase module for React Native!
https://react-native-iap.dooboolab.com
MIT License
2.74k stars 632 forks source link

iOS version - purchaseUpdatedListener keeps receiving the same transaction id when testing with sandbox #2544

Open yangtran093 opened 9 months ago

yangtran093 commented 9 months ago

Description

iOS version - purchaseUpdatedListener keeps receiving the same transaction id when testing with sandbox

Expected Behavior

transaction id should be different when subscribing to other products

Environment:

To Reproduce Steps to reproduce the behavior:

  1. Call requestSubscription for subscribing to subscription A1
  2. purchaseUpdatedListener receives a receipt with transaction T1
  3. Call requestSubscription for subscribing to subscription A2
  4. purchaseUpdatedListener receives a receipt with transaction T1
NasserBvB commented 9 months ago

Description

iOS version - purchaseUpdatedListener keeps receiving the same transaction id when testing with sandbox

Expected Behavior

transaction id should be different when subscribing to other products

Environment:

  • react-native-iap: 12.10.5
  • react-native: 0.72.1
  • Platforms (iOS, Android, emulator, simulator, device): iOS real devices

To Reproduce Steps to reproduce the behavior:

  1. Call requestSubscription for subscribing to subscription A1
  2. purchaseUpdatedListener receives a receipt with transaction T1
  3. Call requestSubscription for subscribing to subscription A2
  4. purchaseUpdatedListener receives a receipt with transaction T1

Same thing here as well

bitfabrikken commented 9 months ago

Experienced the same and a few other issues along those lines. Moving to Storekit2 solved it for me. Not exactly a solution, but maybe something to consider if it's a possibility.

yangtran093 commented 8 months ago

Hi @bitfabrikken I tried to moved to Storekit2 but still getting the same transaction Id, can you share what your code changes to make it work? Thanks

Saikedo commented 3 months ago

Having the same issue. Any idea how this should be handled? Sometimes I end up getting bunch of previous subscription states right after I try to make a purchase. The clearTransactionIOS might be the solution but I am very confused about that since the example project states that it should not be used in production.