Skip to main content
Question

User cancelled the purchase [Expo react native]

  • December 22, 2024
  • 1 reply
  • 56 views

Forum|alt.badge.img+1

I list all the products I have added. After listing, I select the package I want to subscribe to. Then I need to sign in to my iCloud account. I enter my information, but I receive the following error 

User canceled the purchase

It doesn't open any pop-ups.  

I am using Expo SDK52

react-native-purchase 8.0.0

I tried to on simulator. Also I didn’t see any sandbox account in my settings app store section.


 

{
  "name": "routine-craft",
  "version": "1.0.0",
  "main": "expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web"
  },
  "dependencies": {
    "@amplitude/analytics-react-native": "^1.4.11",
    "@eva-design/eva": "^2.2.0",
    "@gorhom/bottom-sheet": "4.4.7",
    "@react-native-async-storage/async-storage": "1.23.1",
    "@react-native-community/datetimepicker": "8.2.0",
    "@react-navigation/bottom-tabs": "^6.5.11",
    "@react-navigation/elements": "^1.3.21",
    "@react-navigation/native": "^6.1.9",
    "@react-navigation/native-stack": "^6.9.17",
    "@react-navigation/stack": "^6.3.20",
    "@reduxjs/toolkit": "^2.3.0",
    "@ui-kitten/components": "^5.3.1",
    "date-fns": "^4.1.0",
    "expo": "^52.0.21",
    "expo-dev-client": "~5.0.6",
    "expo-image-picker": "~16.0.3",
    "expo-linear-gradient": "~14.0.1",
    "expo-notifications": "~0.29.11",
    "expo-splash-screen": "~0.29.18",
    "expo-status-bar": "~2.0.0",
    "install": "^0.13.0",
    "lottie-react-native": "7.1.0",
    "nativewind": "^4.1.23",
    "react": "18.3.1",
    "react-native": "0.76.5",
    "react-native-calendars": "^1.1307.0",
    "react-native-gesture-handler": "~2.20.2",
    "react-native-get-random-values": "^1.11.0",
    "react-native-heroicons": "^4.0.0",
    "react-native-linear-gradient": "^2.8.3",
    "react-native-purchases": "^8.0.0",
    "react-native-reanimated": "~3.16.1",
    "react-native-safe-area-context": "4.12.0",
    "react-native-screens": "~4.1.0",
    "react-native-svg": "15.8.0",
    "react-redux": "^9.1.2",
    "redux": "^5.0.1",
    "redux-persist": "^6.0.0",
    "tamagui": "^1.116.14",
    "uuid": "^11.0.3"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@types/react": "~18.3.12",
    "tailwindcss": "^3.3.2",
    "typescript": "~5.3.3"
  },
  "private": true
}

 

This post has been closed for comments

1 reply

Forum|alt.badge.img+8
  • RevenueCat Staff
  • 509 replies
  • December 30, 2024

Hi, can you please follow our guide on Expo testing here to make sure you have configured everything properly: https://www.revenuecat.com/blog/engineering/expo-in-app-purchase-tutorial/

 

It sounds like you are logging into iCloud which will cause issues with being logged into a sandbox account and you will need to make a new sandbox tester Apple account if you had logged into iCloud with it in order for testing to work. You'll want to create a brand new Apple sandbox tester account and to then add this account in Settings -> App Store -> Scroll to the bottom and you should see 'Sandbox account'. This is where you should login instead of using iCloud. We also have docs here on how to login: We have our docs here on how to log into the sandbox account: https://www.revenuecat.com/docs/test-and-launch/sandbox/apple-app-store#add-the-sandbox-test-account-to-your-device


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings