react-native-iap icon indicating copy to clipboard operation
react-native-iap copied to clipboard

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

Open yangtran093 opened this issue 2 years ago • 4 comments

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

yangtran093 avatar Sep 14 '23 16:09 yangtran093

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

NasserBvB avatar Sep 22 '23 14:09 NasserBvB

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.

bitfabrikken avatar Sep 25 '23 15:09 bitfabrikken

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

yangtran093 avatar Oct 24 '23 16:10 yangtran093

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.

Saikedo avatar Mar 20 '24 14:03 Saikedo