Skip to main content
Solved

CustomerInfo is null

  • Jan 6, 2023 9:16 AM UTC
  • 3 replies
  • 645 views

Forum|alt.badge.img+8

I have gone through the whole setup. I am testing on a phone I have already made an in-app-purchase on. At the start I received CustomerInfo correctly, but now it is empty all the time. Any idea what is going on?

 

For reference, the offerings are received correctly, and I can see the purchase in the dashboard. It seems to have another app user id though, for some reason.

Best answer by dev99

This link answers all my questions: 

 

Thank you for pointing me to it @Haley Pace 

View original
This post has been closed for comments

3 replies

Forum|alt.badge.img+8
  • Author
  • Helper
  • Jan 6, 2023 10:17 AM UTC

Turns out I had to restore the purchase. Not sure why it was needed.

 

Should I have a restore button in my app? (I don’t have any login)


Forum|alt.badge.img+8
  • Author
  • Helper
  • Jan 6, 2023 11:32 AM UTC

One more thing, when I restore the purchases I get this output:

 

BillingClient: Error consuming purchase with token. Response code: 8

[Purchases] - ERROR: 🤖‼️ Error consuming purchase. Will retry next queryPurchases. DebugMessage: Item is not owned by the user.. ErrorCode: ITEM_NOT_OWNED.

 

Is this normal?

 


Forum|alt.badge.img+8
  • Author
  • Helper
  • Answer
  • Jan 6, 2023 6:03 PM UTC

This link answers all my questions: 

 

Thank you for pointing me to it @Haley Pace