Question

API taking a while to load

  • 23 October 2022
  • 3 replies
  • 32 views

Badge +2

I have the following code to purchase a subscription

  Purchases.shared.logIn(uid) { (purchaserInfo, created, error) in
Purchases.shared.offerings { (offerings, error) in
if let package = offerings?.current?.lifetime {
Purchases.shared.purchasePackage(package) { (transaction, purchaserInfo, error, userCancelled) in
let productId = transaction?.payment.productIdentifier ?? "lifetime"
if purchaserInfo?.entitlements["pro"]?.isActive == true {

 

It takes a while to load. Does anyone know why? Whenever someone purchases a subscription using the revenuecat api in my IOS app, it takes a while for the purchase to go through. 

 
 
 

3 replies

Userlevel 3
Badge +8

Hi,

 

How long would you say it takes to go through? 3 seconds? 30 seconds?

Badge +2

More than several minutes

Userlevel 2
Badge +6

Sometimes it can take a while (a few seconds), but several minutes is too much. Is this for production or sandbox?

Reply