npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-yookassa-payments

v1.1.2

Published

###### iOS NATIVE SDK - 6.7.0 ###### Android NATIVE SDK - 6.4.0

Downloads

32

Readme

react-native-yookassa-payments

iOS NATIVE SDK - 6.7.0
Android NATIVE SDK - 6.4.0

npm install react-native-yookassa-payments --save

Android installation:

  1. Create 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)
  2. Add folowing lines in dependencies android/build.gradle
allprojects {
    repositories {
        mavenCentral()
    }
}
  1. In android/app/build.gradle file add next dependency
dependencies {
    implementation fileTree(dir: "libs", include: ["*.aar"])
}
  1. Also important to add your app scheme. In android/app/build.gradle add following lines:
android {
    defaultConfig {
        resValue "string", "ym_app_scheme", "your_unique_app_scheme"
    }
}
  1. Add this in AndroidManifest.xml for card scanning work
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
<uses-feature android:name="android.hardware.camera.flash" android:required="false" />

iOS installation:

  1. Change Podfile like this:
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'
  1. Add Foundation.swift using Xcode in root folder (ios/Foundation.swift) and select "Сreate Bridging Header"
  2. pod install
  3. (Optional) Russian Localization
    • In your Xcode project => Info => Localization => Click "+" => Add Russian language
    • Copy everything from ios/yookassa-payments-swift-6.1.1/YooKassaPayments/Public/Resources/ru.lproj/Localizable.strings
    • In your Xcode project => File => New File => Strings File => Localizable.strings => Open new created Localizable.strings and paste all copy strings
    • After pasting strings look at Xcode right side and find a Localization menu => Choose Russian language

Google Pay

For testing Google Pay and approve Business Console screenshots

await YooPayment.pay({
   //add this line
   testMode: 1,    
});

Apple Pay

Specify merchantId for apple pay integration

await YooPayment.pay({
  //add this line
  applePayMerchantIdentifier: "merchant.com.your_app_name" 
});

Custom 3DSecure confirmation

For using your custom realization of 3DSecure confirmation, specify returnUrl: string for redirect to your link. Not use confirmPayment() method with returnUrl.

P.S

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