react-native-test-payment-gateway-new 0.1.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 +20 -0
- package/README.md +37 -0
- package/TestPaymentGatewayNew.podspec +20 -0
- package/android/build.gradle +89 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +7 -0
- package/android/src/main/java/com/testpaymentgatewaynew/PaymentActivity.kt +97 -0
- package/android/src/main/java/com/testpaymentgatewaynew/TestPaymentGatewayNewModule.kt +71 -0
- package/android/src/main/java/com/testpaymentgatewaynew/TestPaymentGatewayNewPackage.kt +21 -0
- package/ios/TestPaymentGatewayNew.h +5 -0
- package/ios/TestPaymentGatewayNew.mm +21 -0
- package/lib/module/NativeTestPaymentGatewayNew.js +5 -0
- package/lib/module/NativeTestPaymentGatewayNew.js.map +1 -0
- package/lib/module/index.js +7 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/NativeTestPaymentGatewayNew.d.ts +7 -0
- package/lib/typescript/src/NativeTestPaymentGatewayNew.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +2 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/package.json +168 -0
- package/src/NativeTestPaymentGatewayNew.ts +7 -0
- package/src/index.ts +5 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 saraf
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
in the Software without restriction, including without limitation the rights
|
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
furnished to do so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# react-native-test-payment-gateway-new
|
|
2
|
+
|
|
3
|
+
payment gateway
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
```sh
|
|
9
|
+
npm install react-native-test-payment-gateway-new
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
```js
|
|
17
|
+
import { multiply } from 'react-native-test-payment-gateway-new';
|
|
18
|
+
|
|
19
|
+
// ...
|
|
20
|
+
|
|
21
|
+
const result = multiply(3, 7);
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## Contributing
|
|
26
|
+
|
|
27
|
+
- [Development workflow](CONTRIBUTING.md#development-workflow)
|
|
28
|
+
- [Sending a pull request](CONTRIBUTING.md#sending-a-pull-request)
|
|
29
|
+
- [Code of conduct](CODE_OF_CONDUCT.md)
|
|
30
|
+
|
|
31
|
+
## License
|
|
32
|
+
|
|
33
|
+
MIT
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
require "json"
|
|
2
|
+
|
|
3
|
+
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
|
+
|
|
5
|
+
Pod::Spec.new do |s|
|
|
6
|
+
s.name = "TestPaymentGatewayNew"
|
|
7
|
+
s.version = package["version"]
|
|
8
|
+
s.summary = package["description"]
|
|
9
|
+
s.homepage = package["homepage"]
|
|
10
|
+
s.license = package["license"]
|
|
11
|
+
s.authors = package["author"]
|
|
12
|
+
|
|
13
|
+
s.platforms = { :ios => min_ios_version_supported }
|
|
14
|
+
s.source = { :git => "https://infibeam.keka.com/#/me/attendance/logs.git", :tag => "#{s.version}" }
|
|
15
|
+
|
|
16
|
+
s.source_files = "ios/**/*.{h,m,mm,swift,cpp}"
|
|
17
|
+
s.private_header_files = "ios/**/*.h"
|
|
18
|
+
|
|
19
|
+
install_modules_dependencies(s)
|
|
20
|
+
end
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
buildscript {
|
|
2
|
+
ext.getExtOrDefault = {name ->
|
|
3
|
+
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['TestPaymentGatewayNew_' + name]
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
repositories {
|
|
7
|
+
google()
|
|
8
|
+
mavenCentral()
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
dependencies {
|
|
12
|
+
classpath "com.android.tools.build:gradle:8.7.2"
|
|
13
|
+
// noinspection DifferentKotlinGradleVersion
|
|
14
|
+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${getExtOrDefault('kotlinVersion')}"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
apply plugin: "com.android.library"
|
|
20
|
+
apply plugin: "kotlin-android"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def getExtOrIntegerDefault(name) {
|
|
24
|
+
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["TestPaymentGatewayNew_" + name]).toInteger()
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
android {
|
|
28
|
+
namespace "com.testpaymentgatewaynew"
|
|
29
|
+
|
|
30
|
+
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
|
|
31
|
+
|
|
32
|
+
defaultConfig {
|
|
33
|
+
minSdkVersion getExtOrIntegerDefault("minSdkVersion")
|
|
34
|
+
targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
buildFeatures {
|
|
38
|
+
buildConfig true
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
buildTypes {
|
|
42
|
+
release {
|
|
43
|
+
minifyEnabled false
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
lintOptions {
|
|
48
|
+
disable "GradleCompatible"
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
compileOptions {
|
|
52
|
+
sourceCompatibility JavaVersion.VERSION_1_8
|
|
53
|
+
targetCompatibility JavaVersion.VERSION_1_8
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
sourceSets {
|
|
57
|
+
main {
|
|
58
|
+
java.srcDirs += [
|
|
59
|
+
"generated/java",
|
|
60
|
+
"generated/jni"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
repositories {
|
|
67
|
+
mavenCentral()
|
|
68
|
+
google()
|
|
69
|
+
|
|
70
|
+
maven {
|
|
71
|
+
name = "GitHubPackages"
|
|
72
|
+
url = uri("https://maven.pkg.github.com/InfibeamAvenues/CCAvenue_SDK")
|
|
73
|
+
credentials {
|
|
74
|
+
username = "InfibeamAvenues"
|
|
75
|
+
password = "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"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
def kotlin_version = getExtOrDefault("kotlinVersion")
|
|
81
|
+
|
|
82
|
+
dependencies {
|
|
83
|
+
implementation "com.facebook.react:react-android"
|
|
84
|
+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
85
|
+
|
|
86
|
+
implementation('com.ccavenue.indiasdk:indiasdk:2.1.0@aar') {
|
|
87
|
+
transitive = true
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
package com.testpaymentgatewaynew
|
|
2
|
+
|
|
3
|
+
import android.app.Activity
|
|
4
|
+
import android.content.Intent
|
|
5
|
+
import android.os.Bundle
|
|
6
|
+
import android.util.Log
|
|
7
|
+
import androidx.appcompat.app.AppCompatActivity
|
|
8
|
+
import com.ccavenue.indiasdk.AvenueOrder
|
|
9
|
+
import com.ccavenue.indiasdk.AvenuesApplication
|
|
10
|
+
import com.ccavenue.indiasdk.AvenuesTransactionCallback
|
|
11
|
+
|
|
12
|
+
class PaymentActivity : AppCompatActivity(), AvenuesTransactionCallback {
|
|
13
|
+
|
|
14
|
+
override fun onCreate(savedInstanceState: Bundle?) {
|
|
15
|
+
super.onCreate(savedInstanceState)
|
|
16
|
+
|
|
17
|
+
try {
|
|
18
|
+
val intent = intent
|
|
19
|
+
val options = intent.getBundleExtra("options")
|
|
20
|
+
|
|
21
|
+
if (options == null) {
|
|
22
|
+
Log.e("CCAvenueIndia", "No options received in PaymentActivity")
|
|
23
|
+
finish()
|
|
24
|
+
return
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
val orderDetails = AvenueOrder()
|
|
28
|
+
|
|
29
|
+
// Required parameters
|
|
30
|
+
orderDetails.setTrackingId(options.getString("tracking_id"))
|
|
31
|
+
orderDetails.setOrderId(options.getString("order_id"))
|
|
32
|
+
orderDetails.setRequestHash(options.getString("request_hash"))
|
|
33
|
+
orderDetails.setAccessCode(options.getString("accessCode"))
|
|
34
|
+
orderDetails.setMerchantId(options.getString("mId"))
|
|
35
|
+
orderDetails.setCurrency(options.getString("currency"))
|
|
36
|
+
orderDetails.setAmount(options.getString("amount"))
|
|
37
|
+
|
|
38
|
+
// Optional parameters
|
|
39
|
+
orderDetails.setCustomerId(options.getString("customer_id"))
|
|
40
|
+
orderDetails.setPaymentType(options.getString("payment_type"))
|
|
41
|
+
orderDetails.setMerchantLogo(options.getString("merchant_logo"))
|
|
42
|
+
|
|
43
|
+
orderDetails.setBillingName(options.getString("billing_name"))
|
|
44
|
+
orderDetails.setBillingAddress(options.getString("billing_address"))
|
|
45
|
+
orderDetails.setBillingCountry(options.getString("billing_country"))
|
|
46
|
+
orderDetails.setBillingState(options.getString("billing_state"))
|
|
47
|
+
orderDetails.setBillingCity(options.getString("billing_city"))
|
|
48
|
+
orderDetails.setBillingZip(options.getString("billing_zip"))
|
|
49
|
+
orderDetails.setBillingTel(options.getString("billing_telephone"))
|
|
50
|
+
orderDetails.setBillingEmail(options.getString("billing_email"))
|
|
51
|
+
|
|
52
|
+
orderDetails.setDeliveryName(options.getString("delivery_name"))
|
|
53
|
+
orderDetails.setDeliveryAddress(options.getString("delivery_address"))
|
|
54
|
+
orderDetails.setDeliveryCountry(options.getString("delivery_country"))
|
|
55
|
+
orderDetails.setDeliveryState(options.getString("delivery_state"))
|
|
56
|
+
orderDetails.setDeliveryCity(options.getString("delivery_city"))
|
|
57
|
+
orderDetails.setDeliveryZip(options.getString("delivery_zip"))
|
|
58
|
+
orderDetails.setDeliveryTel(options.getString("delivery_telephone"))
|
|
59
|
+
|
|
60
|
+
orderDetails.setPaymentEnviroment(options.getString("payment_enviroment"))
|
|
61
|
+
|
|
62
|
+
orderDetails.setColorPrimary(options.getString("color_primary") ?: "#164880")
|
|
63
|
+
orderDetails.setColorAccent(options.getString("color_accent") ?: "#EB2226")
|
|
64
|
+
orderDetails.setColorFont(options.getString("color_font") ?: "#FFFFFF")
|
|
65
|
+
|
|
66
|
+
orderDetails.setRedirectUrl(options.getString("redirect_url"))
|
|
67
|
+
orderDetails.setCancelUrl(options.getString("cancel_url"))
|
|
68
|
+
|
|
69
|
+
Log.d("CCAvenueIndia", "PaymentActivity: Starting transaction")
|
|
70
|
+
// Pass THIS activity which implements the callback
|
|
71
|
+
AvenuesApplication.startTransaction(this, orderDetails)
|
|
72
|
+
|
|
73
|
+
} catch (e: Exception) {
|
|
74
|
+
Log.e("CCAvenueIndia", "Error in PaymentActivity: ${e.message}")
|
|
75
|
+
TestPaymentGatewayNewModule.onPaymentError("Error starting payment: ${e.message}")
|
|
76
|
+
finish()
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
override fun onTransactionResponse(bundle: Bundle?) {
|
|
81
|
+
Log.d("CCAvenueIndia", "PaymentActivity: onTransactionResponse")
|
|
82
|
+
TestPaymentGatewayNewModule.onPaymentResponse(bundle)
|
|
83
|
+
finish()
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
override fun onErrorOccurred(errorMessage: String?) {
|
|
87
|
+
Log.d("CCAvenueIndia", "PaymentActivity: onErrorOccurred $errorMessage")
|
|
88
|
+
TestPaymentGatewayNewModule.onPaymentError(errorMessage)
|
|
89
|
+
finish()
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
override fun onCancelTransaction(cancelMessage: String?) {
|
|
93
|
+
Log.d("CCAvenueIndia", "PaymentActivity: onCancelTransaction $cancelMessage")
|
|
94
|
+
TestPaymentGatewayNewModule.onPaymentCancelled(cancelMessage)
|
|
95
|
+
finish()
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
package com.testpaymentgatewaynew
|
|
2
|
+
|
|
3
|
+
import android.os.Bundle
|
|
4
|
+
import android.content.Intent
|
|
5
|
+
import android.util.Log
|
|
6
|
+
import com.ccavenue.indiasdk.AvenuesTransactionCallback
|
|
7
|
+
import com.facebook.react.bridge.*
|
|
8
|
+
|
|
9
|
+
class TestPaymentGatewayNewModule(private val reactContext: ReactApplicationContext) :
|
|
10
|
+
ReactContextBaseJavaModule(reactContext) {
|
|
11
|
+
|
|
12
|
+
companion object {
|
|
13
|
+
private var promise: Promise? = null
|
|
14
|
+
|
|
15
|
+
fun onPaymentResponse(bundle: Bundle?) {
|
|
16
|
+
Log.d("CCAvenueIndia", "Transaction response received in Module")
|
|
17
|
+
val response = WritableNativeMap()
|
|
18
|
+
|
|
19
|
+
bundle?.let {
|
|
20
|
+
it.keySet().forEach { key ->
|
|
21
|
+
val value = it.getString(key)
|
|
22
|
+
response.putString(key, value)
|
|
23
|
+
Log.d("CCAvenueIndia", "$key: $value")
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
promise?.resolve(response)
|
|
28
|
+
promise = null
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
fun onPaymentError(errorMessage: String?) {
|
|
32
|
+
Log.e("CCAvenueIndia", "Transaction Error in Module: $errorMessage")
|
|
33
|
+
promise?.reject("TRANSACTION_ERROR", errorMessage ?: "Transaction failed")
|
|
34
|
+
promise = null
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
fun onPaymentCancelled(cancelMessage: String?) {
|
|
38
|
+
Log.d("CCAvenueIndia", "Transaction Cancelled in Module: $cancelMessage")
|
|
39
|
+
promise?.reject("TRANSACTION_CANCELLED", cancelMessage ?: "Transaction cancelled by user")
|
|
40
|
+
promise = null
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
override fun getName(): String {
|
|
45
|
+
return "TestPaymentGatewayNew"
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@ReactMethod
|
|
49
|
+
fun payTestPaymentGatewayNew(options: ReadableMap, promise: Promise) {
|
|
50
|
+
TestPaymentGatewayNewModule.promise = promise
|
|
51
|
+
|
|
52
|
+
try {
|
|
53
|
+
val currentActivity = reactContext.currentActivity
|
|
54
|
+
if (currentActivity != null) {
|
|
55
|
+
Log.d("CCAvenueIndia", "Starting transaction with PaymentActivity")
|
|
56
|
+
|
|
57
|
+
val intent = Intent(currentActivity, PaymentActivity::class.java)
|
|
58
|
+
intent.putExtra("options", Arguments.toBundle(options))
|
|
59
|
+
currentActivity.startActivity(intent)
|
|
60
|
+
} else {
|
|
61
|
+
Log.e("CCAvenueIndia", "Activity not available")
|
|
62
|
+
promise.reject("ERROR", "Activity not available")
|
|
63
|
+
TestPaymentGatewayNewModule.promise = null
|
|
64
|
+
}
|
|
65
|
+
} catch (e: Exception) {
|
|
66
|
+
Log.e("CCAvenueIndia", "Error initializing payment: ${e.message}", e)
|
|
67
|
+
promise.reject("INIT_ERROR", "Failed to initialize payment: ${e.message}")
|
|
68
|
+
TestPaymentGatewayNewModule.promise = null
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
package com.testpaymentgatewaynew
|
|
2
|
+
|
|
3
|
+
import com.facebook.react.ReactPackage
|
|
4
|
+
import com.facebook.react.bridge.NativeModule
|
|
5
|
+
import com.facebook.react.bridge.ReactApplicationContext
|
|
6
|
+
import com.facebook.react.uimanager.ViewManager
|
|
7
|
+
|
|
8
|
+
class TestPaymentGatewayNewPackage : ReactPackage {
|
|
9
|
+
|
|
10
|
+
override fun createNativeModules(
|
|
11
|
+
reactContext: ReactApplicationContext
|
|
12
|
+
): List<NativeModule> {
|
|
13
|
+
return listOf(TestPaymentGatewayNewModule(reactContext))
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
override fun createViewManagers(
|
|
17
|
+
reactContext: ReactApplicationContext
|
|
18
|
+
): List<ViewManager<*, *>> {
|
|
19
|
+
return emptyList()
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#import "TestPaymentGatewayNew.h"
|
|
2
|
+
|
|
3
|
+
@implementation TestPaymentGatewayNew
|
|
4
|
+
- (NSNumber *)multiply:(double)a b:(double)b {
|
|
5
|
+
NSNumber *result = @(a * b);
|
|
6
|
+
|
|
7
|
+
return result;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
|
|
11
|
+
(const facebook::react::ObjCTurboModule::InitParams &)params
|
|
12
|
+
{
|
|
13
|
+
return std::make_shared<facebook::react::NativeTestPaymentGatewayNewSpecJSI>(params);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
+ (NSString *)moduleName
|
|
17
|
+
{
|
|
18
|
+
return @"TestPaymentGatewayNew";
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@end
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeTestPaymentGatewayNew.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAA0B,cAAc;AAMpE,eAAeA,mBAAmB,CAACC,YAAY,CAAO,uBAAuB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TestPaymentGatewayNew","payTestPaymentGatewayNew","options"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,OAAOA,qBAAqB,MAAM,kCAA+B;AAEjE,OAAO,SAASC,wBAAwBA,CAACC,OAAY,EAAgB;EACnE,OAAOF,qBAAqB,CAACC,wBAAwB,CAACC,OAAO,CAAC;AAChE","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type TurboModule } from 'react-native';
|
|
2
|
+
export interface Spec extends TurboModule {
|
|
3
|
+
payTestPaymentGatewayNew(options: Object): Promise<Object>;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: Spec;
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=NativeTestPaymentGatewayNew.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeTestPaymentGatewayNew.d.ts","sourceRoot":"","sources":["../../../src/NativeTestPaymentGatewayNew.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAErE,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAC5D;;AAED,wBAA+E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAEA,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAEnE"}
|
package/package.json
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-native-test-payment-gateway-new",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "payment gateway",
|
|
5
|
+
"main": "src/index.ts",
|
|
6
|
+
"react-native": "src/index.ts",
|
|
7
|
+
"types": "src/index.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./src/index.ts",
|
|
11
|
+
"require": "./src/index.ts"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"src",
|
|
16
|
+
"lib",
|
|
17
|
+
"android",
|
|
18
|
+
"ios",
|
|
19
|
+
"cpp",
|
|
20
|
+
"*.podspec",
|
|
21
|
+
"react-native.config.js",
|
|
22
|
+
"!ios/build",
|
|
23
|
+
"!android/build",
|
|
24
|
+
"!android/gradle",
|
|
25
|
+
"!android/gradlew",
|
|
26
|
+
"!android/gradlew.bat",
|
|
27
|
+
"!android/local.properties",
|
|
28
|
+
"!**/__tests__",
|
|
29
|
+
"!**/__fixtures__",
|
|
30
|
+
"!**/__mocks__",
|
|
31
|
+
"!**/.*"
|
|
32
|
+
],
|
|
33
|
+
"scripts": {
|
|
34
|
+
"example": "yarn workspace react-native-test-payment-gateway-new-example",
|
|
35
|
+
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
|
|
36
|
+
"prepare": "bob build",
|
|
37
|
+
"typecheck": "tsc",
|
|
38
|
+
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
39
|
+
"test": "jest",
|
|
40
|
+
"release": "release-it --only-version"
|
|
41
|
+
},
|
|
42
|
+
"keywords": [
|
|
43
|
+
"react-native",
|
|
44
|
+
"ios",
|
|
45
|
+
"android"
|
|
46
|
+
],
|
|
47
|
+
"repository": {
|
|
48
|
+
"type": "git",
|
|
49
|
+
"url": "git+https://github.com/pgsaraf8624-eng/test-payment-gateway-new.git"
|
|
50
|
+
},
|
|
51
|
+
"author": "pgsaraf8624-eng <pgsaraf8624@gmail.com> (https://github.com/pgsaraf8624-eng)",
|
|
52
|
+
"license": "MIT",
|
|
53
|
+
"bugs": {
|
|
54
|
+
"url": "https://github.com/pgsaraf8624-eng/test-payment-gateway-new/issues"
|
|
55
|
+
},
|
|
56
|
+
"homepage": "https://github.com/pgsaraf8624-eng/test-payment-gateway-new#readme",
|
|
57
|
+
"publishConfig": {
|
|
58
|
+
"registry": "https://registry.npmjs.org/"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@commitlint/config-conventional": "^19.8.1",
|
|
62
|
+
"@eslint/compat": "^1.3.2",
|
|
63
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
64
|
+
"@eslint/js": "^9.35.0",
|
|
65
|
+
"@react-native/babel-preset": "0.83.0",
|
|
66
|
+
"@react-native/eslint-config": "0.83.0",
|
|
67
|
+
"@release-it/conventional-changelog": "^10.0.1",
|
|
68
|
+
"@types/jest": "^29.5.14",
|
|
69
|
+
"@types/react": "^19.2.0",
|
|
70
|
+
"commitlint": "^19.8.1",
|
|
71
|
+
"del-cli": "^6.0.0",
|
|
72
|
+
"eslint": "^9.35.0",
|
|
73
|
+
"eslint-config-prettier": "^10.1.8",
|
|
74
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
75
|
+
"jest": "^29.7.0",
|
|
76
|
+
"lefthook": "^2.0.3",
|
|
77
|
+
"prettier": "^2.8.8",
|
|
78
|
+
"react": "19.2.0",
|
|
79
|
+
"react-native": "0.83.0",
|
|
80
|
+
"react-native-builder-bob": "^0.40.13",
|
|
81
|
+
"release-it": "^19.0.4",
|
|
82
|
+
"turbo": "^2.5.6",
|
|
83
|
+
"typescript": "^5.9.2"
|
|
84
|
+
},
|
|
85
|
+
"peerDependencies": {
|
|
86
|
+
"react": "*",
|
|
87
|
+
"react-native": "*"
|
|
88
|
+
},
|
|
89
|
+
"workspaces": [
|
|
90
|
+
"example"
|
|
91
|
+
],
|
|
92
|
+
"packageManager": "yarn@4.11.0",
|
|
93
|
+
"react-native-builder-bob": {
|
|
94
|
+
"source": "src",
|
|
95
|
+
"output": "lib",
|
|
96
|
+
"targets": [
|
|
97
|
+
[
|
|
98
|
+
"module",
|
|
99
|
+
{
|
|
100
|
+
"esm": true
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
[
|
|
104
|
+
"typescript",
|
|
105
|
+
{
|
|
106
|
+
"project": "tsconfig.build.json"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
"codegenConfig": {
|
|
112
|
+
"name": "TestPaymentGatewayNewSpec",
|
|
113
|
+
"type": "modules",
|
|
114
|
+
"jsSrcsDir": "src",
|
|
115
|
+
"android": {
|
|
116
|
+
"javaPackageName": "com.testpaymentgatewaynew"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"prettier": {
|
|
120
|
+
"quoteProps": "consistent",
|
|
121
|
+
"singleQuote": true,
|
|
122
|
+
"tabWidth": 2,
|
|
123
|
+
"trailingComma": "es5",
|
|
124
|
+
"useTabs": false
|
|
125
|
+
},
|
|
126
|
+
"jest": {
|
|
127
|
+
"preset": "react-native",
|
|
128
|
+
"modulePathIgnorePatterns": [
|
|
129
|
+
"<rootDir>/example/node_modules",
|
|
130
|
+
"<rootDir>/lib/"
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
"commitlint": {
|
|
134
|
+
"extends": [
|
|
135
|
+
"@commitlint/config-conventional"
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
"release-it": {
|
|
139
|
+
"git": {
|
|
140
|
+
"commitMessage": "chore: release ${version}",
|
|
141
|
+
"tagName": "v${version}"
|
|
142
|
+
},
|
|
143
|
+
"npm": {
|
|
144
|
+
"publish": true
|
|
145
|
+
},
|
|
146
|
+
"github": {
|
|
147
|
+
"release": true
|
|
148
|
+
},
|
|
149
|
+
"plugins": {
|
|
150
|
+
"@release-it/conventional-changelog": {
|
|
151
|
+
"preset": {
|
|
152
|
+
"name": "angular"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"create-react-native-library": {
|
|
158
|
+
"type": "turbo-module",
|
|
159
|
+
"languages": "kotlin-objc",
|
|
160
|
+
"tools": [
|
|
161
|
+
"eslint",
|
|
162
|
+
"jest",
|
|
163
|
+
"lefthook",
|
|
164
|
+
"release-it"
|
|
165
|
+
],
|
|
166
|
+
"version": "0.56.0"
|
|
167
|
+
}
|
|
168
|
+
}
|