Solved

Purchases.shared.paymentDiscount is VERY slow

  • 3 October 2021
  • 1 reply
  • 134 views

Badge +1

Why is the Purchases.shared.paymentDiscount function taking so long to complete? The completion is called about 30 sec after the function is called. 

icon

Best answer by ryan 5 October 2021, 17:08

View original

1 reply

Userlevel 5
Badge +9

It’s not uncommon for some Apple APIs to get pretty clunky in sandbox - this includes fetching products, making or restoring purchases, generating payment discounts, etc. I’ve never seen any timeout periods so requests can take minutes sometimes - in production things tend to be much quicker. 

Since certain requests need to go through system level iOS APIs, such as this one, there’s unfortunately not much developers can do to speed things up or work around it but I wouldn’t worry too much about the speed of these requests in sandbox. 

Reply