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.