Cannot receive App Store Server Notification or see transaction in xcode

I'm building app for iOS with flutter and I encountered some problem implementing the IAP function.

What I Encountered

I made a purchase in simulator. The product list was load successfully, the storekit poped up, and I finished purchase successfully as well. But I cannot see transaction detail in the Storekit Manager in xcode, neither can I see notification send from Apple.

  • I'm sure I configured the server URL in App Store Connect, and both chose V2.
  • I'm sure I enabled Storekit in Edit Scheme, and sync with App Store Connect
  • My server can receive Test Server Notification.

What I Expected

I want to receive the notification from Apple when make purchase from both develpment(simulator) and production(physical device). Otherwise I cannot verify the user's purchase.

When using the simulator, all purchases are running locally in Xcode, you aren't using the Sandbox environment, and so we can't send notifications. While in simulator, you will have locally signed transactions that you can use to see and "verify" the authenticity of transactions. Once you switch the the Sandbox/Testflight environment, your purchases will trigger App Store Server Notifications. A tip, even if you don't receive a notification, it is still possible to verify the authenticity of the transaction by verifying the signature of the signed transaction itself.

Cannot receive App Store Server Notification or see transaction in xcode
 
 
Q