Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No callback registered for transaction with state purchased. #203

Open
kbennoune opened this issue Jan 25, 2019 · 0 comments
Open

No callback registered for transaction with state purchased. #203

kbennoune opened this issue Jan 25, 2019 · 0 comments

Comments

@kbennoune
Copy link

I'm using the library to enable subscription purchases. I'm still developing the app so I'm using the sandbox. When I purchase the product I get the "You're all set. Your purchase was successful." dialog but the app itself isn't running the callback and the console is printing the warning "No callback registered for transaction with state purchased." When I start the purchase and cancel instead of entering the sandbox account password I see the warning "No callback registered for transaction with state failed."

Here's the react code I'm using for the purchase.

      InAppUtils.purchaseProduct(productIdentifier, (error, response) => {
        if (response) {
          const { transactionIdentifier,  productIdentifier: responseProductIdentifier, transactionReceipt, transactionDate } = response

          store.dispatch( { type: 'SUBSCRIBED_TO_SERVICE', productIdentifier, transactionIdentifier, transactionReceipt, transactionDate })
        } else {
          store.dispatch({ type: 'SUBSCRIBE_TO_SERVICE_FAILED', error })
        }
      });

I'm using ios 12.1.3.

Any ideas about what's going on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant