Skip to main content
Question

Consumable purchases

  • January 6, 2022
  • 1 reply
  • 248 views

Forum|alt.badge.img+3

Good afternoon. 


In addition to monthly/semi-annual subscriptions, we have an opportunity to make one-time purchases (consumable), when a user buys for example 1/5/10 items, his internal balance is replenished and he can spend it at any time. 
With the current settings on the tests there is no possibility to buy an item more than 1 time. Could you please tell me what's the problem? 


All done according to the instructions.

 

And also when paying with a test card returns an error in the callback, how to fix

1 reply

jazmine
Forum|alt.badge.img+7
  • Dedicated Contributor
  • 122 replies
  • January 14, 2022

Hi @AlexOdi , 

 

Can you send over some debug logs of you trying to purchase an item more than once?

You can enable debug logs by following this guide. After they're enabled you'll see logs like this in the console:
 

[Purchases] - DEBUG: No cached entitlements, fetching
[Purchases] - DEBUG: GET /v1/subscribers/<APP_USER_ID> 200
[Purchases] - DEBUG: Purchaser info updated, sending to delegate


Please ensure the debug logs include the entire app life-cycle, including the messages printed during initialization of the SDK. 

 

Additionally are you in observer mode? Or upon configuring are you setting finishTransactions to false?

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings