Question

Consumable purchases

  • 6 January 2022
  • 1 reply
  • 214 views

Badge +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

Userlevel 3
Badge +7

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