Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

[StoreKit External Purchase] Testing token retrieval in development environment with React Native

  1. Question on token testing in development:

Hello,

I'm developing a React Native application using StoreKit External Purchase. I'm having difficulties testing the transaction token retrieval in the development environment.

Specific questions:

  • Is it possible to test the transaction token retrieval in development/sandbox environment?
  • Is there a special testing mode for developers that would allow simulating token reception without going through the App Store?
  • Are there specific debugging tools to verify proper token reception?
  1. Question on native implementation:

Regarding the native implementation of StoreKit External Purchase:

  • Is there detailed documentation on creating native modules for React Native that implement StoreKit External Purchase?

  • Can you confirm if the following approach is correct for native implementation:

    • Using NSClassFromString(@"ExternalPurchase")
    • Calling presentNoticeSheetWithURL:completion:
    • Retrieving the token in the completion block
  • Are there any code examples for complete native implementation?

  1. Question on implementation validation:

For validating StoreKit External Purchase implementation:

  • How can we verify that our implementation is correct before App Store submission?
  • Are there validation tools or automated tests to check compliance?
  • What are common errors to avoid during implementation?
  1. Question on best practices:

Regarding implementation best practices:

  • What's the best way to handle potential errors during token retrieval?
  • How to handle cases where the user cancels the transaction?
  • What are the recommended security checks for server-side token validation?
  1. Question on documentation:

I'm looking for additional resources on StoreKit External Purchase:

  • Is there specific documentation for integration with frameworks like React Native?
  • Are there complete code examples for native implementation?
  • Where can I find information about testing and debugging best practices?
  1. Additional technical question:

Technical implementation details:

  • What's the correct way to handle the ExternalPurchase class initialization in React Native native modules?
  • Are there specific requirements for the URL passed to presentNoticeSheetWithURL?
  • How should we handle the token in the completion block to ensure it's properly passed back to React Native?
  1. Question on testing workflow:

Testing workflow questions:

  • What's the recommended testing workflow for External Purchase implementation?
  • How can we verify the token format and validity before production deployment?
  • Are there any tools or methods to simulate the complete purchase flow in development?
[StoreKit External Purchase] Testing token retrieval in development environment with React Native
 
 
Q