Skip to main content
Answer

CustomerInfo is null

  • January 6, 2023
  • 3 replies
  • 292 views

Forum|alt.badge.img+7

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 

This post has been closed for comments

3 replies

Forum|alt.badge.img+7
  • Author
  • Helper
  • January 6, 2023

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+7
  • Author
  • Helper
  • January 6, 2023

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+7
  • Author
  • Helper
  • Answer
  • January 6, 2023

This link answers all my questions: 

 

Thank you for pointing me to it @Haley Pace