#abdul-ahad_code

1 messages ยท Page 1 of 1 (latest)

oak dirgeBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1372293746888278229

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

austere dome
#

Hi ๐Ÿ‘‹ what is the error you're seeing?

#

@foggy wadi are you around to tell us more about the error you're encountering?

foggy wadi
#

Suew

#

"@stripe/stripe-react-native": "^0.23.3",

it is working with this version but i want to use this feature that is mobile payment element

oak dirgeBOT
foggy wadi
#

i tried this version which is latest one 0.46.0 but it is not working getting long error i will share my package json

"@stripe/stripe-react-native": "^0.23.3",
"axios": "^1.7.9",
"date-fns": "^4.1.0",
"flatlist": "^0.0.0",
"install": "^0.13.0",
"npm": "^11.1.0",
"react": "18.3.1",
"react-hook-form": "^7.54.2",
"react-native": "0.76.5",
"react-native-contact-picker": "^0.0.5",
"react-native-contacts": "^8.0.4",

austere dome
#

So what is the error you're seeing when you run pod install?

foggy wadi
#

No error in pod install, getting error when running npm run ios

#

I will share the error

#

it is very loong

#

I have to add a file

#

def node_require(script)

Resolve script with node to allow for hoisting

require Pod::Executable.execute_command('node', ['-p',
"require.resolve(
'#{script}',
{paths: [process.argv[1]]},
)", dir]).strip
end

node_require('react-native/scripts/react_native_pods.rb')
node_require('react-native-permissions/scripts/setup.rb')

platform :ios, min_ios_version_supported
prepare_react_native_project!
setup_permissions([
'LocationAccuracy',
'LocationAlways',
'LocationWhenInUse',
'Contacts',
'Camera',
'PhotoLibrary'
])
use_frameworks! :linkage => :static
linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
use_frameworks! :linkage => linkage.to_sym
end

target 'moveMate' do
config = use_native_modules!

use_react_native!(
:path => config[:reactNativePath],
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)

target 'moveMateTests' do
inherit! :complete
# Pods for testing
end

post_install do |installer|
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false,
# :ccache_enabled => true
)
end
end

#

This is my pod file

devout horizon
#

๐Ÿ‘‹ stepping in

#

This doesn't look to be an issue specific to Stripe here so we can't really help. My recommendation would be to create a new project and successfully build it and then add the Stripe React Native SDK.

foggy wadi
#

It is working perfect when i uninstall stripe-react-native

devout horizon
#

In that case you have some dependency issue with one of your other dependencies. So you would want to create a fresh blank project and then add any other dependencies one by one.

foggy wadi
#

it is working perfectly with stripe version 0.23

#

not with 46

#

Is 23 version enough for just payment intgertation? using card and apple pay?

devout horizon
#

Yes

#

However we always recommend using our latest versions, but 0.23.0 does support both Card and Apple Pay