Solved

How to debug a single user being unable to purchase an offering in Production...

  • 22 August 2023
  • 2 replies
  • 76 views

Badge

Hello World! 

I’m a developer on a React Native mobile app that uses Revenue Cat (v. 5.14.0) to paywall our upgraded features behind a subscription. We have received a report of a user being unable to purchase our subscription from Apple. This user has submitted a video recording of the issue and the purchase process begins as expected and then ends un-expectedly. The app does not crash but premium was not purchased.

Our onPurchase implementation looks like this:  (sorry for formatting)
```

const onPurchase = useCallback(

async (subscription: PurchasesPackage | null) => {

try {

setLoading(true);

if (subscription) {

const { customerInfo } = await Purchases.purchasePackage(subscription);

if (

typeof customerInfo.entitlements.active[

REV_CAT_ENTITELEMENTS.PREMIUM_PRO

] !== "undefined"

) {

Sentry.Native.captureMessage("Premium Pro Purchased");

setLoading(false);

checkPremiumProStatus();

if (isLoggedIn) {

setPreProModalVisible(false);

} else {

setSignUpModalVisible(true);

}

}

}

} catch (e: any) {

setLoading(false);

setPreProModalVisible(false);

if (!e.userCancelled) {

Sentry.Native.captureException(e);

}

}

},

[checkPremiumProStatus, isLoggedIn, setPreProModalVisible]

);


```

From our error logging I see the following potentially-related issue:
```

There is an issue with your configuration. Check the underlying error for more details. There's a problem with your configuration. None of the products registered in the RevenueCat dashboard could be fetched from App Store Connect (or the StoreKit Co…
```

However, I believe that we currently have other iOS users purchasing every variation of our subscription that we offer, so the `There is an issue with your configuration` warning doesn’t seem correct to me.
 

If you’re encountering a similar issue, can help, or want me to add more information, please join the discussion!

icon

Best answer by Michael Fogel 24 August 2023, 19:19

View original

2 replies

Userlevel 4
Badge +6

Hey There,

 

Can you please create a support ticket for this so we can look into this with some more detail? 

 

Click here to create a support ticket.

Badge

Done!

Reply