From a43b8b5487a97b5a287bfdcbea32e748c93bec57 Mon Sep 17 00:00:00 2001 From: akshaybhalotia Date: Wed, 8 Mar 2017 12:29:31 +0530 Subject: [PATCH 1/3] Update iOS framework download script --- download_ios_framework.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/download_ios_framework.sh b/download_ios_framework.sh index f56e568a0..9db299a59 100755 --- a/download_ios_framework.sh +++ b/download_ios_framework.sh @@ -1,7 +1,7 @@ #!/bin/sh ## Run this script after installing the module -curl -O http://downloads.razorpay.com/Razorpay.framework-0.14.1.zip -unzip ./Razorpay.framework-0.14.1.zip +curl -O http://downloads.razorpay.com/Razorpay.framework-0.15.0.zip +unzip ./Razorpay.framework-0.15.0.zip rm -r ./ios/Razorpay.framework cp -R ./Razorpay.framework ./ios/ From 56d60fd308c3879837b9a59daf199e229a926559 Mon Sep 17 00:00:00 2001 From: akshaybhalotia Date: Wed, 8 Mar 2017 12:30:05 +0530 Subject: [PATCH 2/3] Minor edits --- CONTRIBUTING.md | 4 ++-- README.md | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9c69bd289..367f6f403 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,8 +19,8 @@ contributed to it. Fork the repo. 1. Use the example project to test the module. -2. Change `"react-native-razorpay": ">=1.0.0"` in `package.json` of example to -`"react-native-razorpay": "./../"`. +2. Delete the `postinstall` step from `package.json`. Remember to revert this +change when commiting. 3. Edit example/reload.sh to configure your path. 4. Follow instructions to link your project with the iOS SDK, as given in the [README]. 5. Run example/reload.sh every time you make a change to the module. diff --git a/README.md b/README.md index 0b991056a..8462a458b 100644 --- a/README.md +++ b/README.md @@ -47,8 +47,10 @@ You can skip steps 1, 2 and 3 if you used `npm`. `path/to/your/project/node_modules/react-native-razorpay/ios`. 4. Open `path/to/your/project/ios/.xcworkspace` or `path/to/your/project/ios/.xcodeproj` -5. Also link the `.framework` file **_directly_ to your project** in Xcode. Check the - `Copy items if needed` box and select your project target from the list below. +5. Also link the `.framework` file **_directly_ to your project** in Xcode. You + can do this by simply dragging-and-dropping the `.framework` file into Xcode +under directory named `your_project`. Check the `Copy items if needed` box and + select your project target from the list below. 6. Add the following line of code in your `AppDelegate.m` under the imports section: `#import ` 7. Add the following line of code in your `AppDelegate.m` inside the @@ -93,7 +95,7 @@ and the `catch` part corresponds to payment failure. } RazorpayCheckout.open(options).then((data) => { // handle success - alert(`Success: ${data.payment_id}`); + alert(`Success: ${data.razorpay_payment_id}`); }).catch((error) => { // handle failure alert(`Error: ${error.code} | ${error.description}`); From 7338a9020969966b6c499644e11cc30d70928fbe Mon Sep 17 00:00:00 2001 From: akshaybhalotia Date: Wed, 8 Mar 2017 12:30:30 +0530 Subject: [PATCH 3/3] Version bump and fixed peer dependencies --- package.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 4cdd4af9f..aa981aa69 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-razorpay", - "version": "1.1.0", + "version": "1.1.1", "description": "React Native wrapper for Razorpay", "main": "RazorpayCheckout.js", "scripts": { @@ -11,6 +11,12 @@ "type": "git", "url": "git+https://github.com/razorpay/react-native-razorpay.git" }, + "dependencies": { + "react-native": "<0.40.0" + }, + "peerDependencies": { + "react-native": "<0.40.0" + }, "keywords": [ "react-native", "razorpay",