#cashappgoogle
1 messages · Page 1 of 1 (latest)
Hello
Hi there!
Have you done the necessary pieces in your Expo app in terms of setting up entitlements like we show here: https://stripe.com/docs/terminal/payments/setup-reader/tap-to-pay
My setup in regards to building the app is a bit different than usual. Since I don't have access to a macbook or macOS and I am working with React Native and Expo, I use Expo Application Services (EAS) to build my app remotely on their servers for both Android and iOS. I don't directly have access to the iOS-related files since they are generated on Expo's servers each time the app is built. In regards to setting up a provisioning profile and adding the Tap to Pay on iPhone capability on my App ID, I have done that, and build the app with that provisioning profile, but I still end up with the same error.
Did you set up your config plugin like shown in https://docs.expo.dev/versions/latest/sdk/stripe/ ?
I have also set up my config plugin as shown here: https://stripe.com/docs/terminal/payments/setup-integration?terminal-sdk-platform=react-native
like this:
{
"expo": {
"plugins": [
[
"@stripe/stripe-terminal-react-native",
{
"bluetoothBackgroundMode": true,
"locationWhenInUsePermission": "Location access is required in order to accept payments.",
"bluetoothPeripheralPermission": "Bluetooth access is required in order to connect to supported bluetooth card readers.",
"bluetoothAlwaysUsagePermission": "This app uses Bluetooth to connect to supported card readers."
}
]
]
}
}
The only difference from this guide being that I can't run expo prebuild and expo run:ios since I have to use eas build in order to build my app (expo prebuild is run remotely on Expo's servers during the EAS build process)
However, reading this has given me an idea that I want to try. There is a way to manually add entitlements to the app config to get EAS build to recognize them, so I will try that real quick
Try that and let me know
It turns out that manually adding the com.apple.developer.proximity-reader.payment.acceptance (Tap to Pay) entitlement into my app.json like so:
{
"expo": {
"ios": {
"entitlements": {
"com.apple.developer.proximity-reader.payment.acceptance": true
}
}
}
}
ended up fixing my issue! Thank you so much!! 🙏