@cashfreepayments/react-native-cashfree-cn-sdk 1.0.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +79 -0
- package/android/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.2/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.2/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.2/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/7.2/gc.properties +0 -0
- package/android/.gradle/7.5/checksums/checksums.lock +0 -0
- package/android/.gradle/7.5/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.5/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.5/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.5/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.5/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.5/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.5/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.5/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.5/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/7.5/gc.properties +0 -0
- package/android/.gradle/8.5/checksums/checksums.lock +0 -0
- package/android/.gradle/8.5/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.5/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/8.5/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.5/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.5/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/config.properties +2 -0
- package/android/.gradle/nb-cache/trust/5D9F4D2F872AE83553369BAEF9EF62F30CBE0A19F76FE265082C658DB033E1DA +1 -0
- package/android/.gradle/nb-cache/trust/811DB8418F399FDF2AFA5CB6893343C7013E03D6360FA7A8FBFC8B0C8A38EE77 +1 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/compiler.xml +6 -0
- package/android/.idea/gradle.xml +18 -0
- package/android/.idea/migrations.xml +10 -0
- package/android/.idea/misc.xml +9 -0
- package/android/.idea/other.xml +549 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/build.gradle +77 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/android/local.properties +8 -0
- package/android/src/main/AndroidManifest.xml +4 -0
- package/android/src/main/java/com/reactnativecashfreecnsdk/CashfreePgApiModule.java +319 -0
- package/android/src/main/java/com/reactnativecashfreecnsdk/CashfreePgApiPackage.java +28 -0
- package/ios/CashfreeEmitter.swift +36 -0
- package/ios/CashfreeEventEmitter.m +16 -0
- package/ios/CashfreeEventEmitter.swift +28 -0
- package/ios/CashfreePgApi-Bridging-Header.h +5 -0
- package/ios/CashfreePgApi.m +21 -0
- package/ios/CashfreePgApi.swift +410 -0
- package/ios/CashfreePgApi.xcodeproj/project.pbxproj +293 -0
- package/ios/CashfreePgApi.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/CashfreePgApi.xcodeproj/project.xcworkspace/xcuserdata/nikhil.kushwah.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/CashfreePgApi.xcodeproj/xcuserdata/nikhil.kushwah.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/lib/commonjs/Card/CFCardComponent.js +287 -0
- package/lib/commonjs/Card/CFCardComponent.js.map +1 -0
- package/lib/commonjs/Card/index.js +14 -0
- package/lib/commonjs/Card/index.js.map +1 -0
- package/lib/commonjs/index.js +168 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/module/Card/CFCardComponent.js +279 -0
- package/lib/module/Card/CFCardComponent.js.map +1 -0
- package/lib/module/Card/index.js +2 -0
- package/lib/module/Card/index.js.map +1 -0
- package/lib/module/index.js +159 -0
- package/lib/module/index.js.map +1 -0
- package/lib/typescript/src/Card/CFCardComponent.d.ts +12 -0
- package/lib/typescript/src/Card/index.d.ts +1 -0
- package/lib/typescript/src/index.d.ts +43 -0
- package/package.json +157 -0
- package/react-native-cashfree-cn-sdk.podspec +20 -0
- package/src/Card/CFCardComponent.js +238 -0
- package/src/Card/CFCardComponent.tsx +323 -0
- package/src/Card/index.js +1 -0
- package/src/Card/index.ts +1 -0
- package/src/index.js +167 -0
- package/src/index.ts +219 -0
package/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2021 cashfree-payments
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
# react-native-cashfree-cn-sdk
|
2
|
+
|
3
|
+
|
4
|
+
The Cashfree React Native SDK allows you to integrate Cashfree Payment Gateway into your application and start collecting payments from your customers. The React Native SDK has been designed to minimise the complexity of handling and integrating payments in your React Native project.
|
5
|
+
|
6
|
+
Click [here](https://docs.cashfree.com/docs/react-native-integration) for more Documentation.
|
7
|
+
|
8
|
+
## Installation
|
9
|
+
|
10
|
+
```sh
|
11
|
+
npm install react-native-cashfree-cn-sdk
|
12
|
+
```
|
13
|
+
|
14
|
+
### iOS
|
15
|
+
Add the following code to application's info.plist file.
|
16
|
+
```xml
|
17
|
+
<key>LSApplicationCategoryType</key>
|
18
|
+
<string></string>
|
19
|
+
<key>LSApplicationQueriesSchemes</key>
|
20
|
+
<array>
|
21
|
+
<string>phonepe</string>
|
22
|
+
<string>tez</string>
|
23
|
+
<string>paytm</string>
|
24
|
+
<string>bhim</string>
|
25
|
+
</array>
|
26
|
+
```
|
27
|
+
|
28
|
+
## Usage
|
29
|
+
|
30
|
+
```js
|
31
|
+
import {
|
32
|
+
CFCallback,
|
33
|
+
CFErrorResponse,
|
34
|
+
CFPaymentGatewayService,
|
35
|
+
} from 'react-native-cashfree-cn-sdk';
|
36
|
+
import {
|
37
|
+
CFDropCheckoutPayment,
|
38
|
+
CFEnvironment,
|
39
|
+
CFSession,
|
40
|
+
CFThemeBuilder,
|
41
|
+
} from 'cashfree-pg-api-contract';
|
42
|
+
|
43
|
+
// ...
|
44
|
+
|
45
|
+
try {
|
46
|
+
const session = new CFSession(
|
47
|
+
'order_token',
|
48
|
+
'order_id',
|
49
|
+
CFEnvironment.SANDBOX
|
50
|
+
);
|
51
|
+
const theme = new CFThemeBuilder()
|
52
|
+
.setNavigationBarBackgroundColor('#E64A19')
|
53
|
+
.setNavigationBarTextColor('#FFFFFF')
|
54
|
+
.setButtonBackgroundColor('#FFC107')
|
55
|
+
.setButtonTextColor('#FFFFFF')
|
56
|
+
.setPrimaryTextColor('#212121')
|
57
|
+
.setSecondaryTextColor('#757575')
|
58
|
+
.build();
|
59
|
+
const dropPayment = new CFDropCheckoutPayment(session, null, theme);
|
60
|
+
CFPaymentGatewayService.doPayment(dropPayment,"");
|
61
|
+
} catch (e: any) {
|
62
|
+
console.log(e.message);
|
63
|
+
}
|
64
|
+
```
|
65
|
+
|
66
|
+
## Contributing
|
67
|
+
|
68
|
+
If you want to contribute please read the [Contributing](CONTRIBUTING.md) guidelines.
|
69
|
+
|
70
|
+
## License
|
71
|
+
<pre>
|
72
|
+
The Cashfree React Native SDK is licensed under the MIT License.
|
73
|
+
See the LICENSE file distributed with this work for additional
|
74
|
+
information regarding copyright ownership.
|
75
|
+
|
76
|
+
Except as contained in the LICENSE file, the name(s) of the above copyright
|
77
|
+
holders shall not be used in advertising or otherwise to promote the sale,
|
78
|
+
use or other dealings in this Software without prior written authorization.
|
79
|
+
</pre>
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
Binary file
|
Binary file
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
298751333E5DB222BF2D8330F8E73F710052FCB62517E4EC9A1E237B716A96C6
|
@@ -0,0 +1 @@
|
|
1
|
+
D734F1D269D0530AC5D8A71C06FE87C10A44415466D7A56829E8CD98E5D50AAB
|
File without changes
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="GradleMigrationSettings" migrationVersion="1" />
|
4
|
+
<component name="GradleSettings">
|
5
|
+
<option name="linkedExternalProjectsSettings">
|
6
|
+
<GradleProjectSettings>
|
7
|
+
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
8
|
+
<option name="gradleJvm" value="homebrew-17" />
|
9
|
+
<option name="modules">
|
10
|
+
<set>
|
11
|
+
<option value="$PROJECT_DIR$" />
|
12
|
+
</set>
|
13
|
+
</option>
|
14
|
+
<option name="resolveExternalAnnotations" value="false" />
|
15
|
+
</GradleProjectSettings>
|
16
|
+
</option>
|
17
|
+
</component>
|
18
|
+
</project>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<project version="4">
|
2
|
+
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
3
|
+
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK">
|
4
|
+
<output url="file://$PROJECT_DIR$/build/classes" />
|
5
|
+
</component>
|
6
|
+
<component name="ProjectType">
|
7
|
+
<option name="id" value="Android" />
|
8
|
+
</component>
|
9
|
+
</project>
|