Giter Site home page Giter Site logo

razorpay / react-native-razorpay Goto Github PK

View Code? Open in Web Editor NEW
122.0 185.0 107.0 90.58 MB

React Native wrapper for Razorpay's mobile SDKs

Home Page: https://www.npmjs.com/package/react-native-razorpay

License: MIT License

JavaScript 11.54% Java 39.17% Objective-C 17.03% Shell 7.43% Starlark 0.98% Ruby 4.06% Makefile 2.49% C++ 11.36% Objective-C++ 5.94%

react-native-razorpay's Introduction

react-native-razorpay

npm NPM Version NPM Downloads install size

NPM

React Native wrapper around our Android and iOS mobile SDKs

The following documentation is only focussed on the react-native wrapper around our Android and iOS sdks. To know more about our react-native SDK, refer to the following documentation -

https://razorpay.com/docs/payment-gateway/react-native-integration/

To know more about Razorpay payment flow and steps involved, read up here: https://docs.razorpay.com/docs

Prerequisites

  • Learn about the Razorpay Payment Flow.
  • Sign up for a Razorpay Account and generate the API Keys from the Razorpay Dashboard. Using the Test keys helps simulate a sandbox environment. No actual monetary transaction happens when using the Test keys. Use Live keys once you have thoroughly tested the application and are ready to go live.

Installation

Using npm:

npm install --save react-native-razorpay

or using yarn:

yarn add react-native-razorpay

For Expo Users:

npx expo install react-native-razorpay

Requirements

  • iOS 10.0+ / macOS 10.12+ / tvOS 10.0+ / watchOS 3.0+
  • Xcode 11+
  • Swift 5.1+

Linking

Automatic

iOS

For React Native 0.60+

# install
npm install react-native-razorpay --save
cd ios && open podfile # Change the platform from iOS 9.0 to 10.0
pod install && cd .. # CocoaPods on iOS needs this extra step
# run
yarn react-native run-ios

For React Native 0.59 and lower

  1. $ npm install react-native-razorpay --save // Install the Razorpay React Native Standard SDK using the npm command.

  2. react-native link react-native-razorpay // Link the SDK with React Native Project using Xcode.

  3. Drag the Razorpay.framework file from the Libraries folder and drop it under the root folder, for more info follow this link, after this go to Target > General Settings> Framework, Libraries and Embedded Content section, set the Embed status of Razorpay.framework to Embed & Sign.

  4. Also make sure the razorpay framework is added in the embedded binaries section and you have Always Embed Swift Standard Binaries set to yes in build settings.

Manual

iOS (via CocoaPods)

Add the following line to your build targets in your Podfile

pod 'react-native-razorpay', :path => '../node_modules/react-native-razorpay'

Then run pod install

iOS (without CocoaPods)

In XCode, in the project navigator:

  • Right click Libraries
  • Add Files to [your project's name]
  • Go to node_modules/react-native-razorpay
  • Add the .xcodeproj file

In XCode, in the project navigator, select your project.

  • Add the libRNDeviceInfo.a from the deviceinfo project to your project's Build Phases ➜ Link Binary With Libraries
  • Click .xcodeproj file you added before in the project navigator and go the Build Settings tab. Make sure All is toggled on (instead of Basic).
  • Look for Header Search Paths and make sure it contains both $(SRCROOT)/../react-native/React and $(SRCROOT)/../../React
  • Mark both as recursive (should be OK by default).

Run your project (Cmd+R)

Android
  1. Open up android/app/src/main/java/[...]/MainApplication.java
  • Add import com.razorpay.rn.RazorpayPackage; to the imports at the top of the file
  • Add new RazorpayPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-razorpay'
    project(':react-native-razorpay').projectDir = new File(rootProject.projectDir,   '../node_modules/react-native-razorpay/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
    implementation project(':react-native-razorpay')

Note for Expo Applications:

After adding the react-native-razorpay package,the option to prebuild the app must be used(this generates the android/ios platform folders in the project to use native-modules). Command for which,

npx expo prebuild

After which the application will be installed on the device/emulator.

npx expo run:[ios|android] --device

Usage

Sample code to integrate with Razorpay can be found in index.js in the included example directory.

To run the example, simply do the following in example directory and then link iOS SDK as explained in the previous section:

$ npm i

Steps

  1. Import RazorpayCheckout module to your component:

    import RazorpayCheckout from 'react-native-razorpay';
  2. Call RazorpayCheckout.open method with the payment options. The method returns a JS Promise where then part corresponds to a successful payment and the catch part corresponds to payment failure.

    <TouchableHighlight onPress={() => {
      var options = {
        description: 'Credits towards consultation',
        image: 'https://i.imgur.com/3g7nmJC.png',
        currency: 'INR',
        key: '', // Your api key
        amount: '5000',
        name: 'foo',
        prefill: {
          email: '[email protected]',
          contact: '9191919191',
          name: 'Razorpay Software'
        },
        theme: {color: '#F37254'}
      }
      RazorpayCheckout.open(options).then((data) => {
        // handle success
        alert(`Success: ${data.razorpay_payment_id}`);
      }).catch((error) => {
        // handle failure
        alert(`Error: ${error.code} | ${error.description}`);
      });
    }}>

A descriptive list of valid options for checkout is available (under Manual Checkout column).

Proguard Rules

If you are using proguard for your builds, you need to add following lines to proguard files

-keepattributes *Annotation*
-dontwarn com.razorpay.**
-keep class com.razorpay.** {*;}
-optimizations !method/inlining/
-keepclasseswithmembers class * {
  public void onPayment*(...);
}

Things to be taken care

  • The react native plugin is wrapper around native SDK, so it doesn't work with the tools like expo which doesn't support native modules.

FAQ's

  • For UPI Intent in iOS, the info.plist in iOS should be modified to include LSApplicationQueriesSchemes
    • For Bare React-Native Apps:
      • info.plist can directly be modified from the xcode project. LSApplicationQueriesSchemes takes as array value and can currently include only ["tez","phonepe","paytmmp"]
    • For Expo Apps:
      • Directly modifying info.plist is discouraged, and hence this should be added in app.json
        "ios": {
          "infoPlist": {
            "LSApplicationQueriesSchemes": [
               "tez",
               "phonepe",
               "paytmmp"
            ]
          }
        }
      • P.S: The apps won't be visible if the application is run with metro builder. The info.plist is generated successfully and integrated only when the app is built as standalone app.
  • Still having trouble with integrating our payment gateway? Follow this link for more info.

Contributing

See the CONTRIBUTING document. Thank you, contributors!

License

react-native-razorpay is Copyright (c) 2020 Razorpay Software Pvt. Ltd. It is distributed under the MIT License.

We ♥ open source software! See our other supported plugins / SDKs or contact us to help you with integrations.

react-native-razorpay's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-native-razorpay's Issues

BIT_CODE error while archiving

../ios/Razorpay.framework/Razorpay(RazorpayCheckoutViewController.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

using RN 0.40.0 tried with enable bitcode too but the same error.

RazorpayCheckout.open() getting stuck

The "Authorize Payment" header appears and nothing happens.
screenshot 2018-07-23_14-25-54
screenshot 2018-07-23_14-26-35

`import React, { Component } from 'react';
import { View, Text, StatusBar, TouchableHighlight } from 'react-native';
import { Button } from 'react-native-elements';
import RazorpayCheckout from 'react-native-razorpay';

export default class Cash extends Component {

doCheckOut() {
const options = {
description: 'Credits towards consultation',
image: 'https://i.imgur.com/3g7nmJC.png',
currency: 'INR',
key: 'xxxxxxxxxxxxxxxxxx',
amount: '100',
name: 'foo',
prefill: {
email: '[email protected]',
contact: '9191919191',
name: 'Razorpay Software'
},
theme: { color: '#F37254' }
};

RazorpayCheckout.open(options)
.then((data) => {
// handle success
console.log(Success: ${data.razorpay_payment_id});
})
.catch((error) => {
// handle failure
console.log(Error: ${error.code} | ${error.description});
});
}

render() {
return (

<Button
title="Pay"
color="#ffffff"
backgroundColor="#3498db"
buttonStyle={{ marginTop: 10 }}
onPress={this.doCheckOut.bind(this)}
/>

);
}
}`

Improvement: Please Update Documentation for iOS Integration

I spent so much time integrating it and every time I got this error: framework not found Razorpay for architecture x86_64.
After spending numerous hours, I found I need to add Razorpay.framework in my project as well (Actually need to do all the steps mentioned in the Objective-C integration: https://razorpay.com/docs/ios/)
Also, react-native link didn't work for me. Had to manually link it.
Can you please update your documentation, so it's a hassle-free integration.

Not installed

npm i react-native-razorpay not working .
Says './download-ios_sdk.sh' is not a command

NativeModules.RazorpayCheckout is undefined

Hi Team,

I have imported RazorpayCheckout still getting undefined error.

import RazorpayCheckout from 'react-native-razorpay'.

<TouchableHighlight onPress={() => {
                                        var options = {
                                            description: 'Credits towards consultation',
                                            image: 'https://i.imgur.com/3g7nmJC.png',
                                            currency: 'INR',
                                            key: 'rzp_test_1DP5mmOlF5G5ag',
                                            amount: '5000',
                                            name: 'foo',
                                            theme: {color: '#74AFAD'}
                                        }
                                        RazorpayCheckout.open(options).then((data) => {
                                            // handle success
                                            alert(`Success: ${data.razorpay_payment_id}`);
                                        }).catch((error) => {
                                            // handle failure
                                            console.log(error)
                                            alert(`Error: ${error.code} | ${error.description}`);
                                        });
                                        }}>

                                        <View>
                                            <Text style={{color: '#74AFAD' }}>Pay</Text>
                                        </View>
                                        </TouchableHighlight>


error is:

TypeError: Cannot read property 'open' of undefined
    **## at E:\dev\finalMobileApp\node_modules\react-native-razorpay\RazorpayCheckout.js:26**
    at tryCallTwo (E:\dev\finalMobileApp\node_modules\promise\setimmediate\core.js:45)
    at doResolve (E:\dev\finalMobileApp\node_modules\promise\setimmediate\core.js:200)
    at new Promise (E:\dev\finalMobileApp\node_modules\promise\setimmediate\core.js:66)
    at Function.open (E:\dev\finalMobileApp\node_modules\react-native-razorpay\RazorpayCheckout.js:15)
    at Object.onPress (E:\dev\finalMobileApp\App\Hotels\HotelDetail.js:926)
    at Object.touchableHandlePress (E:\dev\finalMobileApp\node_modules\react-native\Libraries\Components\Touchable\TouchableHighlight.js:199)
    at Object._performSideEffectsForTransition (E:\dev\finalMobileApp\node_modules\react-native\Libraries\Components\Touchable\Touchable.js:746)
    at Object._receiveSignal (E:\dev\finalMobileApp\node_modules\react-native\Libraries\Components\Touchable\Touchable.js:664)
    at Object.touchableHandleResponderRelease (E:\dev\finalMobileApp\node_modules\react-native\Libraries\Components\Touchable\Touchable.js:43

Something went wrong while linking. Error: Cannot read property 'buildConfigurationList' of undefined

Steps to recreate the issue:

  1. react-native init
  2. npm i react-native-razorpay --save
  3. react-native link react-native-razorpay

Full issue:
Scanning folders for symlinks in ~/node_modules (19ms)
rnpm-install info Linking react-native-razorpay ios dependency
rnpm-install ERR! Something went wrong while linking. Error: Cannot read property 'buildConfigurationList' of undefined
Please file an issue here: https://github.com/facebook/react-native/issues

Cannot read property 'buildConfigurationList' of undefined

Razorpay iOS not working

I have done the setup according to the docs
https://github.com/razorpay/react-native-razorpay

But when i try to checkout the below method is not working. It does not open the checkout page.

RCT_EXPORT_METHOD(open : (NSDictionary *)options) {
NSString *keyID = (NSString *)[options objectForKey:@"key"];
id razorpay = [NSClassFromString(@"Razorpay") initWithKey:keyID
andDelegateWithData:self];
[razorpay setExternalWalletSelectionDelegate:self];
dispatch_sync(dispatch_get_main_queue(), ^{
[razorpay open:options];
});
}

razoorpay object is returning null after init. Due to which the open:options method is not working..

handle modal dismiss

hi, is it possible to create a handler for when the RazorPay checkout modal is dismissed? i tried passing a function as options.modal.ondismiss but it does not seem to run.

Razorpay Payment Window Not Open

Hello,
App runs fine and Payment screen comes when i tried it by creating new react native app, But when i am trying to include in my App, its not showing me razorpay payment screen and no error is coming in console.

I am using https://github.com/wix/react-native-navigation for navigation purpose, i think due to this it malfunctioned. can any one help me in this?
I have no knowledge in Android/iOS.

react-native 0.44.0
react 16.0.0-alpha.6
react-native-navigation 1.1.79
react-native-razorpay 1.2.1

ENV: ANDROID

Thanks.

Bit Code

So Im able to make razor pay run on ios emulator but when i try to install that on phone i get this build error
iphoneos/libRazorpayCheckout.a(RazorpayCheckout.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64

I downloaded the bit code version file file from and did the manual installtion
https://github.com/razorpay/razorpay-ios-sample-app/releases/tag/v0.15.0
and
http://downloads.razorpay.com/Razorpay.framework-0.15.0-bitcode.zip

Both dint gives the same compiling

However it works if i set the enabled bit code setting to false on project build setting

"Invalid Segment Alignment. The app binary at '/Frameworks/Razorpay.framework/Razorpay' does not have proper segment alignment.

Updated to the latest version of lib.

Getting the following error on release build while uploading to the store.

following errors:

  1. ERROR ITMS-90087: "Unsupported Architectures. The executable for KheloMore.app/Frameworks/Razorpay.framework contains unsupported architectures '[x86_64, i386]'."

  2. ERROR ITMS-90209: "Invalid Segment Alignment. The app binary at 'KheloMore.app/Frameworks/Razorpay.framework/Razorpay' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version."

  3. ERROR ITMS-90125: "The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker."

screenshot123

-- Looking for the solution for specifically second one.

thanks.

RN: 0.51.0
Xcode: 9.2

Latest iOS SDK has missing ExternalWalletSelectionProtocol.h

As per your documentation when I replaced the existing framework in RazorpayCheckout.xcodeproj, it gives following error:
'Razorpay/ExternalWalletSelectionProtocol.h' file not found
I think the iOS SDK and react native project are not in sync. It would be great if you could provide link to last react-native-razorpay compatible framework.

libRazorpaycheckout does not contain bitcode

Working Fine When Running in Simulator,but When Running on Device Or Archiving the App it gives Link Error. "libRazorpayCheckout.a(RazorPayEventEmiitter.o) does not contain bitcode.

The SDK Build Tools revision (24.0.0) is too low for project ':react-native-razorpay'. Minimum required is 25.0.0

Upgraded my project to 0.56. So my build.gradle had the config like so

ext {
    buildToolsVersion = "26.0.3"
    minSdkVersion = 16
    compileSdkVersion = 26
    targetSdkVersion = 26
    supportLibVersion = "26.1.0"
}

IDE Specs

Razorpay Package Version: 2.0.5

Retro Steps

react-native start
react-native run-android

Screenshots

razorpay

Cannot find module while installing

I am install razorpay and when i run this command i am getting error react-native link react-native-razorpay

Amans-MacBook-Pro:uc_reactnative khanakia$ react-native link react-native-razorpay
Scanning folders for symlinks in /Volumes/D/www/js/uc_js/uc_reactnative/node_modules (15ms)
{ Error: Cannot find module '/Volumes/D/www/js/uc_js/uc_reactnative/node_modules/react-native-razorpay/package.json'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
    at Function.Module._load (internal/modules/cjs/loader.js:507:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at getRNPMConfig (/Volumes/D/www/js/uc_js/uc_reactnative/node_modules/react-native/local-cli/core/index.js:53:3)
    at Object.getDependencyConfig (/Volumes/D/www/js/uc_js/uc_reactnative/node_modules/react-native/local-cli/core/index.js:115:18)
    at deps.reduce (/Volumes/D/www/js/uc_js/uc_reactnative/node_modules/react-native/local-cli/link/getDependencyConfig.js:16:24)
    at Array.reduce (<anonymous>)
    at getDependencyConfig (/Volumes/D/www/js/uc_js/uc_reactnative/node_modules/react-native/local-cli/link/getDependencyConfig.js:13:15)
    at Object.link (/Volumes/D/www/js/uc_js/uc_reactnative/node_modules/react-native/local-cli/link/link.js:131:24) code: 'MODULE_NOT_FOUND' }

[iOS] broken build because of libRazorpayCheckout.a

All was ok, but couple of days ago my iOS build has been broken with this error:

Undefined symbols for architecture arm64: "_OBJC_CLASS_$__TtC8Razorpay8Razorpay", referenced from: objc-class-ref in libRazorpayCheckout.a(RazorpayCheckout.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I can get rid of this error only by removing libRazorpayCheckout.a from Project target -> General -> Linked Frameworks and Libraries. But this is not acceptable. So why could it happen?

RN: 0.44.0
react-native-razorpay: 1.4.2
Xcode: 9.2

Cannot read property 'buildConfigurationList' of undefined

IDE Specs

Retro Steps

Screenshots

Duplicate module name: react-animated

Upgraded my react-native project to 0.56

IDE Specs

{
    buildToolsVersion = "26.0.3"
    minSdkVersion = 16
    compileSdkVersion = 26
    targetSdkVersion = 26
    supportLibVersion = "26.1.0"
}

Razorpay Package Version: 2.0.5

Retro Steps

I have upgraded my react-native version to 0.56 from 0.55

react-native start
react-native run-android.

Error message

error: bundling failed: Error: jest-haste-map: @providesModule naming collision:
  Duplicate module name: react-animated
  Paths: .../node_modules/react-native-razorpay/node_modules/react-native/Libraries/Animated/release/package.json collides with .../node_modules/react-native/Libraries/Animated/release/package.json

Different success objects on iOS and Android. Change documentation

The success objects that are returned after the payment are structured differently. In the documentation it's give as ${data.razorpay_payment_id} only. While, this works for iOS, the android response is an object that contains "razorpay_payment_id" in another key "details" and "payment_id" is another key whose value is same as the razorpay_payment_id. Please check the screenshot below and change the documentation.

screen shot 2017-11-03 at 1 13 03 pm

screen shot 2017-11-03 at 1 00 21 pm

com.razorpay.rn does not exist

I am able to see this package in android folder in node modules but still getting this error

Task :app:compileDebugJavaWithJavac
E:\dev\finalMobileApp\android\app\src\main\java\com\bag2bag\MainApplication.java:6: error: package com.razorpay.rn does not exist
import com.razorpay.rn.RazorpayPackage;
^
E:\dev\finalMobileApp\android\app\src\main\java\com\bag2bag\MainApplication.java:38: error: cannot find symbol
new RazorpayPackage(),
^
symbol: class RazorpayPackage
2 errors

Dyld Library Error.

IDE Specs

Xcode Version (iOS) -->9.2
Razorpay Package Version -->2.0.5 (Downloaded RazorPay FrameWork Swift 3.1 )
React_native Version--0.55.4

dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /private/var/containers/Bundle/Application/053EBB13-7618-4E1A-B133-8B1AE4510B58/ul88.app/Frameworks/Razorpay.framework/Razorpay
Reason: image not found

screen shot 2018-06-04 at 1 45 43 pm

getting the following error while installing rules for eslint:

HI Please help me, getting the following error while installing rules for eslint:

D:\react native\portfolio>npm install --save-dev eslint-config-rallycoding
npm WARN deprecated [email protected]: please use eslint-plugin-babel and babel/semi
npm WARN rm not removing D:\react native\portfolio\node_modules.bin\uuid.cmd as it wasn't installed by D:\react native\portfolio\node_modules\uuid
npm WARN rm not removing D:\react native\portfolio\node_modules.bin\uuid as it wasn't installed by D:\react native\portfolio\node_modules\uuid
npm WARN rm not removing D:\react native\portfolio\node_modules.bin\jsesc.cmd as it wasn't installed by D:\react native\portfolio\node_modules\jsesc
npm WARN rm not removing D:\react native\portfolio\node_modules.bin\jsesc as it wasn't installed by D:\react native\portfolio\node_modules\jsesc
npm WARN rm not removing D:\react native\portfolio\node_modules.bin\esparse.cmd as it wasn't installed by D:\react native\portfolio\node_modules\esprima
npm WARN rm not removing D:\react native\portfolio\node_modules.bin\esvalidate.cmd as it wasn't installed by D:\react native\portfolio\node_modules\esprima
npm WARN rm not removing D:\react native\portfolio\node_modules.bin\esparse as it wasn't installed by D:\react native\portfolio\node_modules\esprima
npm WARN rm not removing D:\react native\portfolio\node_modules.bin\esvalidate as it wasn't installed by D:\react native\portfolio\node_modules\esprima
npm ERR! Maximum call stack size exceeded

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\shash\AppData\Roaming\npm-cache_logs\2018-05-12T14_07_09_951Z-debug.log

Build Error

Undefined symbols for architecture x86_64:
"OBJC_CLASS$_CTTelephonyNetworkInfo", referenced from:
objc-class-ref in Razorpay(RazorpayLogging.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Getting architechtural issues

Hi, Can anyone help me out with this issue
While uploading iOS build into test flight getting architectural issues for react-native-razorpay.

react-native version:0.51
react-native-razorpay version: 2.0.3

Does it support Paytm wallet ?

IDE Specs

Xcode Version : 9.3
Gradle version : 4.4
Razorpay : 2.0.6

I do not see paytm wallet into the wallet's list .

Incompatible minsdk

This is the error i get

:react-native-razorpay:processDebugAndroidTestManifest FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-razorpay:processDebugAndroidTestManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 11 cannot be smaller than version 16 declared in library [com.facebook.react:react-native:0.20.1] /home/harisvsulaiman/work/weave/app/weava/node_modules/react-native-razorpay/android/build/intermediates/exploded-aar/com.facebook.react/react-native/0.20.1/AndroidManifest.xml
  	Suggestion: use tools:overrideLibrary="com.facebook.react" to force usage

Not working on ios after intallation

"react": "16.0.0-alpha.6",
"react-native": "0.43.3",

Im trying to add the example code on ios but after linkin ,
when i try to execute the open code

nuthing happens

Need help in integration of razor pay
and feel like framework file is not updated with npm

Razorpay is not working for android

I have tried manual installation also. i am not able to build the app.
gives error like this.
A problem occurred configuring project ':app'.

Could not resolve all dependencies for configuration ':app:_debugApk'.
Configuration with name 'default' not found.

Pod support for iOS

Please add pod support for razorpay
If it exists please update the documentation.

Removing react native dependency from package.json

Hey,
Current version is causing error because it has react-native in its dependencies.

-----ERROR
This warning is caused by a @providesModule declaration with the same name across two different files.
jest-haste-map: @providesModule naming collision:
Duplicate module name: PanResponder
Paths: #/node_modules/react-native-razorpay/node_modules/react-native/Libraries/Interaction/PanResponder.js collides with #/react-native/Libraries/Interaction/PanResponder.js

This will be solved if you remove react-native from dependency.
Thanks

Error During npm install

Hi, I get an error when trying to install this package using npm. Seems a post-install .sh script is failing.

OS: Windows 10
Node: v6.10.0
npm: v3.10.10

202 verbose stack Error: [email protected] postinstall: ./download_ios_framework.sh
202 verbose stack Exit status 1
202 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:255:16)
202 verbose stack at emitTwo (events.js:106:13)
202 verbose stack at EventEmitter.emit (events.js:191:7)
202 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
202 verbose stack at emitTwo (events.js:106:13)
202 verbose stack at ChildProcess.emit (events.js:191:7)
202 verbose stack at maybeClose (internal/child_process.js:877:16)
202 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
203 verbose pkgid [email protected]
204 verbose cwd C:\Users...\Documents\Visual Studio 2017\Projects\ReactNativeTest\ReactNativeTest
205 error Windows_NT 10.0.14393
206 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "i" "react-native-razorpay" "--save"
207 error node v6.10.0
208 error npm v3.10.10
209 error code ELIFECYCLE
210 error [email protected] postinstall: ./download_ios_framework.sh
210 error Exit status 1
211 error Failed at the [email protected] postinstall script './download_ios_framework.sh'.
211 error Make sure you have the latest version of node.js and npm installed.
211 error If you do, this is most likely a problem with the react-native-razorpay package,
211 error not with npm itself.
211 error Tell the author that this fails on your system:
211 error ./download_ios_framework.sh
211 error You can get information on how to open an issue for this project with:
211 error npm bugs react-native-razorpay
211 error Or if that isn't available, you can get their info via:
211 error npm owner ls react-native-razorpay
211 error There is likely additional logging output above.
212 verbose exit [ 1, true ]

iOS Pay button does not work & Project does not build in xcode

When we build it and run it using react-native run-ios, the pay button does not open up the payment window.

When we build it in xcode, below error happens:
ld: framework not found Razorpay
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.