
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
react-native-yookassa-payments
Advanced tools
###### iOS NATIVE SDK - 6.7.0 ###### Android NATIVE SDK - 6.4.0
npm install react-native-yookassa-payments --save
libs
folder in android/app
directory and put there ThreatMetrix Android SDK 5.4-73.aar
file (this file will given you by yookassa manager)android/build.gradle
allprojects {
repositories {
mavenCentral()
}
}
android/app/build.gradle
file add next dependencydependencies {
implementation fileTree(dir: "libs", include: ["*.aar"])
}
android/app/build.gradle
add following lines:android {
defaultConfig {
resValue "string", "ym_app_scheme", "your_unique_app_scheme"
}
}
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
<uses-feature android:name="android.hardware.camera.flash" android:required="false" />
source 'https://git.yoomoney.ru/scm/sdk/cocoa-pod-specs.git'
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
target 'YourAppName' do
config = use_native_modules!
pod 'react-native-yookassa-payments', :path => '../node_modules/react-native-yookassa-payments'
pod 'CardIO'
pod 'YooKassaPayments',
:build_type => :dynamic_framework,
:git => 'https://git.yoomoney.ru/scm/sdk/yookassa-payments-swift.git',
:tag => '6.7.0'
pod install
For testing Google Pay and approve Business Console screenshots
await YooPayment.pay({
//add this line
testMode: 1,
});
Specify merchantId for apple pay integration
await YooPayment.pay({
//add this line
applePayMerchantIdentifier: "merchant.com.your_app_name"
});
For using your custom realization of 3DSecure confirmation, specify returnUrl: string for redirect to your link. Not use confirmPayment() method with returnUrl.
If you see errors in Xcode Project like this:
Failed to build module 'MoneyAuth' from its module interface...
Compipiling for iOS 10.0, but module 'FunctiionalSwift' has a minimum deployment target iOS 11.0...
Typedef redefinition with different types ('uint8_t' (aka 'unsigned char'))...
You can resolve it by adding post_install in your Podfile:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if target.name == 'FunctionalSwift' || target.name == 'YooMoneyCoreApi'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
else
if target.name == 'RCT-Folly'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
else
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
end
end
end
end
end
end
https://github.com/yoomoney/yookassa-payments-swift/issues/93
FAQs
###### iOS NATIVE SDK - 6.7.0 ###### Android NATIVE SDK - 6.4.0
We found that react-native-yookassa-payments demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.