skipcash-reactnative 0.0.2
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 +334 -0
- package/android/build.gradle +183 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/AndroidManifestNew.xml +2 -0
- package/android/src/main/java/com/skipcashreactnative/ModalActivity.java +128 -0
- package/android/src/main/java/com/skipcashreactnative/SkipcashReactnativeModule.java +361 -0
- package/android/src/main/java/com/skipcashreactnative/SkipcashReactnativePackage.kt +18 -0
- package/android/src/main/res/layout/activity_modal.xml +59 -0
- package/ios/Resource/main.storyboard +45 -0
- package/ios/SkipcashReactnative-Bridging-Header.h +2 -0
- package/ios/SkipcashReactnative.mm +18 -0
- package/ios/SkipcashReactnative.swift +994 -0
- package/lib/commonjs/index.js +367 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/module/index.js +355 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +142 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/index.d.ts +142 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/package.json +187 -0
- package/skipcash-reactnative.podspec +43 -0
- package/src/index.tsx +445 -0
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { NativeModules, Platform } from 'react-native';
|
|
4
|
+
const LINKING_ERROR = `The package 'skipcash-reactnative' doesn't seem to be linked. Make sure: \n\n` + Platform.select({
|
|
5
|
+
ios: "- You have run 'pod install'\n",
|
|
6
|
+
default: ''
|
|
7
|
+
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
|
|
8
|
+
export const SkipcashReactnative = NativeModules.SkipcashReactnative ? NativeModules.SkipcashReactnative : new Proxy({}, {
|
|
9
|
+
get() {
|
|
10
|
+
throw new Error(LINKING_ERROR);
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
export function isWalletHasCards() {
|
|
14
|
+
if (Platform.OS === 'ios') {
|
|
15
|
+
return SkipcashReactnative.isWalletHasCards();
|
|
16
|
+
} else {
|
|
17
|
+
console.log(`Method is not implemented for ${Platform.OS} `);
|
|
18
|
+
return Promise.reject(new Error(`Method is not implemented for ${Platform.OS}`));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export function setupNewCard() {
|
|
22
|
+
if (Platform.OS === 'ios') {
|
|
23
|
+
SkipcashReactnative.setupNewCard();
|
|
24
|
+
} else {
|
|
25
|
+
console.log(`Method is not implemented for ${Platform.OS} `);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export function initiateApplePay(paymentData) {
|
|
29
|
+
if (Platform.OS === 'ios') {
|
|
30
|
+
SkipcashReactnative.initiateApplePay(paymentData);
|
|
31
|
+
} else {
|
|
32
|
+
console.log(`Method is not implemented for ${Platform.OS} `);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export function initiatePaymentModel(paymentData) {
|
|
36
|
+
if (Platform.OS === 'android') {
|
|
37
|
+
const _paymentData_ = {
|
|
38
|
+
"authorizationHeader": paymentData.getAuthorizationHeader(),
|
|
39
|
+
"createPaymentEndpoint": paymentData.getPaymentLinkEndPoint(),
|
|
40
|
+
"returnURL": paymentData.getReturnUrl(),
|
|
41
|
+
"paymentData": {
|
|
42
|
+
"amount": paymentData.getAmount(),
|
|
43
|
+
"firstName": paymentData.getFirstName(),
|
|
44
|
+
"lastName": paymentData.getLastName(),
|
|
45
|
+
"phone": paymentData.getPhone(),
|
|
46
|
+
"email": paymentData.getEmail(),
|
|
47
|
+
"transactionId": paymentData.getTransactionId(),
|
|
48
|
+
"webhookUrl": paymentData.getWebhookUrl(),
|
|
49
|
+
"custom1": paymentData.getCustom1(),
|
|
50
|
+
"custom2": paymentData.getCustom2(),
|
|
51
|
+
"custom3": paymentData.getCustom3(),
|
|
52
|
+
"custom4": paymentData.getCustom4(),
|
|
53
|
+
"custom5": paymentData.getCustom5(),
|
|
54
|
+
"custom6": paymentData.getCustom6(),
|
|
55
|
+
"custom7": paymentData.getCustom7(),
|
|
56
|
+
"custom8": paymentData.getCustom8(),
|
|
57
|
+
"custom9": paymentData.getCustom9(),
|
|
58
|
+
"custom10": paymentData.getCustom10(),
|
|
59
|
+
"description": paymentData.getDescription(),
|
|
60
|
+
"subject": paymentData.getSubject(),
|
|
61
|
+
"merchantName": paymentData.getMerchantName(),
|
|
62
|
+
"headerBackgroundColour": paymentData.getHeaderBackgroundColour(),
|
|
63
|
+
"paymentModalTitle": paymentData.getPaymentModalTitle(),
|
|
64
|
+
"headerTitleColour": paymentData.getHeaderTitleColour(),
|
|
65
|
+
"cancelColour": paymentData.getCancelBtnColour()
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
const paymentData_string = JSON.stringify(_paymentData_);
|
|
69
|
+
SkipcashReactnative.initiatePaymentModel(paymentData_string);
|
|
70
|
+
} else if (Platform.OS === 'ios') {
|
|
71
|
+
const paymentData_string = JSON.stringify(paymentData);
|
|
72
|
+
SkipcashReactnative.initiatePaymentModel(paymentData_string);
|
|
73
|
+
} else {
|
|
74
|
+
console.log(`Method is not implemented for ${Platform.OS} `);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
export class PaymentData {
|
|
78
|
+
merchantIdentifier = '';
|
|
79
|
+
countryCode = 'QA';
|
|
80
|
+
currencyCode = 'QAR';
|
|
81
|
+
createPaymentLinkEndPoint = '';
|
|
82
|
+
authorizationHeader = '';
|
|
83
|
+
firstName = '';
|
|
84
|
+
lastName = '';
|
|
85
|
+
amount = '';
|
|
86
|
+
phone = '';
|
|
87
|
+
email = '';
|
|
88
|
+
transactionId = '';
|
|
89
|
+
webhookUrl = '';
|
|
90
|
+
returnUrl = '';
|
|
91
|
+
custom1 = '';
|
|
92
|
+
custom2 = '';
|
|
93
|
+
custom3 = '';
|
|
94
|
+
custom4 = '';
|
|
95
|
+
custom5 = '';
|
|
96
|
+
custom6 = '';
|
|
97
|
+
custom7 = '';
|
|
98
|
+
custom8 = '';
|
|
99
|
+
custom9 = '';
|
|
100
|
+
custom10 = '';
|
|
101
|
+
subject = '';
|
|
102
|
+
description = '';
|
|
103
|
+
paymentModalTitle = '';
|
|
104
|
+
headerBackgroundColour = '#FFFFFF'; // android
|
|
105
|
+
headerTitleColour = '#000000'; // android
|
|
106
|
+
cancelColour = "#000000"; // android
|
|
107
|
+
|
|
108
|
+
merchantName = "You're Business Name";
|
|
109
|
+
summaryItems = {};
|
|
110
|
+
getCurrencyCode() {
|
|
111
|
+
return this.currencyCode;
|
|
112
|
+
}
|
|
113
|
+
getCountryCode() {
|
|
114
|
+
return this.countryCode;
|
|
115
|
+
}
|
|
116
|
+
setSummaryItem(item, amount) {
|
|
117
|
+
this.summaryItems[`${item}`] = amount;
|
|
118
|
+
}
|
|
119
|
+
getSummaryItem(item) {
|
|
120
|
+
return this.summaryItems[item];
|
|
121
|
+
}
|
|
122
|
+
getAllSummaryItems() {
|
|
123
|
+
return this.summaryItems;
|
|
124
|
+
}
|
|
125
|
+
clearSummaryItems() {
|
|
126
|
+
this.summaryItems = {};
|
|
127
|
+
}
|
|
128
|
+
setMerchantIdentifier(mid) {
|
|
129
|
+
this.merchantIdentifier = mid;
|
|
130
|
+
}
|
|
131
|
+
getMerchantIdentifier() {
|
|
132
|
+
return this.merchantIdentifier;
|
|
133
|
+
}
|
|
134
|
+
setPaymentLinkEndPoint(ple) {
|
|
135
|
+
this.createPaymentLinkEndPoint = ple;
|
|
136
|
+
}
|
|
137
|
+
getPaymentLinkEndPoint() {
|
|
138
|
+
return this.createPaymentLinkEndPoint;
|
|
139
|
+
}
|
|
140
|
+
setAuthorizationHeader(authH) {
|
|
141
|
+
this.authorizationHeader = authH;
|
|
142
|
+
}
|
|
143
|
+
getAuthorizationHeader() {
|
|
144
|
+
return this.authorizationHeader;
|
|
145
|
+
}
|
|
146
|
+
setFirstName(fname) {
|
|
147
|
+
this.firstName = fname;
|
|
148
|
+
}
|
|
149
|
+
getFirstName() {
|
|
150
|
+
return this.firstName;
|
|
151
|
+
}
|
|
152
|
+
setLastName(lname) {
|
|
153
|
+
this.lastName = lname;
|
|
154
|
+
}
|
|
155
|
+
getLastName() {
|
|
156
|
+
return this.lastName;
|
|
157
|
+
}
|
|
158
|
+
setAmount(am) {
|
|
159
|
+
this.amount = am;
|
|
160
|
+
}
|
|
161
|
+
getAmount() {
|
|
162
|
+
return this.amount;
|
|
163
|
+
}
|
|
164
|
+
setPhone(p) {
|
|
165
|
+
this.phone = p;
|
|
166
|
+
}
|
|
167
|
+
getPhone() {
|
|
168
|
+
return this.phone;
|
|
169
|
+
}
|
|
170
|
+
setEmail(e) {
|
|
171
|
+
this.email = e;
|
|
172
|
+
}
|
|
173
|
+
getEmail() {
|
|
174
|
+
return this.email;
|
|
175
|
+
}
|
|
176
|
+
setTransactionId(t) {
|
|
177
|
+
this.transactionId = t;
|
|
178
|
+
}
|
|
179
|
+
getTransactionId() {
|
|
180
|
+
return this.transactionId;
|
|
181
|
+
}
|
|
182
|
+
setWebhookUrl(wh) {
|
|
183
|
+
this.webhookUrl = wh;
|
|
184
|
+
}
|
|
185
|
+
getWebhookUrl() {
|
|
186
|
+
return this.webhookUrl;
|
|
187
|
+
}
|
|
188
|
+
setCustom1(c) {
|
|
189
|
+
this.custom1 = c;
|
|
190
|
+
}
|
|
191
|
+
getCustom1() {
|
|
192
|
+
return this.custom1;
|
|
193
|
+
}
|
|
194
|
+
setCustom2(c) {
|
|
195
|
+
this.custom2 = c;
|
|
196
|
+
}
|
|
197
|
+
getCustom2() {
|
|
198
|
+
return this.custom2;
|
|
199
|
+
}
|
|
200
|
+
setCustom3(c) {
|
|
201
|
+
this.custom3 = c;
|
|
202
|
+
}
|
|
203
|
+
getCustom3() {
|
|
204
|
+
return this.custom3;
|
|
205
|
+
}
|
|
206
|
+
setCustom4(c) {
|
|
207
|
+
this.custom4 = c;
|
|
208
|
+
}
|
|
209
|
+
getCustom4() {
|
|
210
|
+
return this.custom4;
|
|
211
|
+
}
|
|
212
|
+
setCustom5(c) {
|
|
213
|
+
this.custom5 = c;
|
|
214
|
+
}
|
|
215
|
+
getCustom5() {
|
|
216
|
+
return this.custom5;
|
|
217
|
+
}
|
|
218
|
+
setCustom6(c) {
|
|
219
|
+
this.custom6 = c;
|
|
220
|
+
}
|
|
221
|
+
getCustom6() {
|
|
222
|
+
return this.custom6;
|
|
223
|
+
}
|
|
224
|
+
setCustom7(c) {
|
|
225
|
+
this.custom7 = c;
|
|
226
|
+
}
|
|
227
|
+
getCustom7() {
|
|
228
|
+
return this.custom7;
|
|
229
|
+
}
|
|
230
|
+
setCustom8(c) {
|
|
231
|
+
this.custom8 = c;
|
|
232
|
+
}
|
|
233
|
+
getCustom8() {
|
|
234
|
+
return this.custom8;
|
|
235
|
+
}
|
|
236
|
+
setCustom9(c) {
|
|
237
|
+
this.custom9 = c;
|
|
238
|
+
}
|
|
239
|
+
getCustom9() {
|
|
240
|
+
return this.custom9;
|
|
241
|
+
}
|
|
242
|
+
setCustom10(c) {
|
|
243
|
+
this.custom10 = c;
|
|
244
|
+
}
|
|
245
|
+
getCustom10() {
|
|
246
|
+
return this.custom10;
|
|
247
|
+
}
|
|
248
|
+
setSubject(sub) {
|
|
249
|
+
this.subject = sub;
|
|
250
|
+
}
|
|
251
|
+
getSubject() {
|
|
252
|
+
return this.subject;
|
|
253
|
+
}
|
|
254
|
+
setDescription(des) {
|
|
255
|
+
this.description = des;
|
|
256
|
+
}
|
|
257
|
+
getDescription() {
|
|
258
|
+
return this.description;
|
|
259
|
+
}
|
|
260
|
+
setPaymentModalTitle(title) {
|
|
261
|
+
this.paymentModalTitle = title;
|
|
262
|
+
}
|
|
263
|
+
getPaymentModalTitle() {
|
|
264
|
+
return this.paymentModalTitle;
|
|
265
|
+
}
|
|
266
|
+
setReturnUrl(url) {
|
|
267
|
+
this.returnUrl = url;
|
|
268
|
+
}
|
|
269
|
+
getReturnUrl() {
|
|
270
|
+
return this.returnUrl;
|
|
271
|
+
}
|
|
272
|
+
setHeaderBackgroundColour(hbg) {
|
|
273
|
+
this.headerBackgroundColour = hbg;
|
|
274
|
+
}
|
|
275
|
+
getHeaderBackgroundColour() {
|
|
276
|
+
return this.headerBackgroundColour;
|
|
277
|
+
}
|
|
278
|
+
setHeaderTitleColour(htc) {
|
|
279
|
+
this.headerTitleColour = htc;
|
|
280
|
+
}
|
|
281
|
+
getHeaderTitleColour() {
|
|
282
|
+
return this.headerTitleColour;
|
|
283
|
+
}
|
|
284
|
+
setCancelBtnColour(cbc) {
|
|
285
|
+
this.cancelColour = cbc;
|
|
286
|
+
}
|
|
287
|
+
getCancelBtnColour() {
|
|
288
|
+
return this.cancelColour;
|
|
289
|
+
}
|
|
290
|
+
setMerchantName(mn) {
|
|
291
|
+
this.merchantName = mn;
|
|
292
|
+
}
|
|
293
|
+
getMerchantName() {
|
|
294
|
+
return this.merchantName;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
export class PaymentResponse {
|
|
298
|
+
constructor(transactionId, paymentId, isSuccess, token, returnCode, errorMessage) {
|
|
299
|
+
this.transactionId = transactionId;
|
|
300
|
+
this.paymentId = paymentId;
|
|
301
|
+
this.isSuccess = isSuccess;
|
|
302
|
+
this.token = token;
|
|
303
|
+
this.returnCode = returnCode;
|
|
304
|
+
this.errorMessage = errorMessage;
|
|
305
|
+
}
|
|
306
|
+
static fromJson(json) {
|
|
307
|
+
const {
|
|
308
|
+
transactionId,
|
|
309
|
+
paymentId,
|
|
310
|
+
isSuccess,
|
|
311
|
+
token,
|
|
312
|
+
returnCode,
|
|
313
|
+
errorMessage
|
|
314
|
+
} = json;
|
|
315
|
+
return new PaymentResponse(transactionId, paymentId, isSuccess, token, returnCode, errorMessage);
|
|
316
|
+
}
|
|
317
|
+
toJson() {
|
|
318
|
+
return {
|
|
319
|
+
paymentId: this.paymentId,
|
|
320
|
+
isSuccess: this.isSuccess,
|
|
321
|
+
token: this.token,
|
|
322
|
+
returnCode: this.returnCode,
|
|
323
|
+
errorMessage: this.errorMessage
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
export class scPaymentResponse {
|
|
328
|
+
constructor(id, statusId, status, transId, custom1) {
|
|
329
|
+
this.id = id;
|
|
330
|
+
this.statusId = statusId;
|
|
331
|
+
this.status = status;
|
|
332
|
+
this.transId = transId;
|
|
333
|
+
this.custom1 = custom1;
|
|
334
|
+
}
|
|
335
|
+
static fromJson(json) {
|
|
336
|
+
const {
|
|
337
|
+
id,
|
|
338
|
+
statusId,
|
|
339
|
+
status,
|
|
340
|
+
transId,
|
|
341
|
+
custom1
|
|
342
|
+
} = json;
|
|
343
|
+
return new scPaymentResponse(id, statusId, status, transId, custom1);
|
|
344
|
+
}
|
|
345
|
+
toJson() {
|
|
346
|
+
return {
|
|
347
|
+
id: this.id,
|
|
348
|
+
statusId: this.statusId,
|
|
349
|
+
status: this.status,
|
|
350
|
+
transId: this.transId,
|
|
351
|
+
custom1: this.custom1
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","SkipcashReactnative","Proxy","get","Error","isWalletHasCards","OS","console","log","Promise","reject","setupNewCard","initiateApplePay","paymentData","initiatePaymentModel","_paymentData_","getAuthorizationHeader","getPaymentLinkEndPoint","getReturnUrl","getAmount","getFirstName","getLastName","getPhone","getEmail","getTransactionId","getWebhookUrl","getCustom1","getCustom2","getCustom3","getCustom4","getCustom5","getCustom6","getCustom7","getCustom8","getCustom9","getCustom10","getDescription","getSubject","getMerchantName","getHeaderBackgroundColour","getPaymentModalTitle","getHeaderTitleColour","getCancelBtnColour","paymentData_string","JSON","stringify","PaymentData","merchantIdentifier","countryCode","currencyCode","createPaymentLinkEndPoint","authorizationHeader","firstName","lastName","amount","phone","email","transactionId","webhookUrl","returnUrl","custom1","custom2","custom3","custom4","custom5","custom6","custom7","custom8","custom9","custom10","subject","description","paymentModalTitle","headerBackgroundColour","headerTitleColour","cancelColour","merchantName","summaryItems","getCurrencyCode","getCountryCode","setSummaryItem","item","getSummaryItem","getAllSummaryItems","clearSummaryItems","setMerchantIdentifier","mid","getMerchantIdentifier","setPaymentLinkEndPoint","ple","setAuthorizationHeader","authH","setFirstName","fname","setLastName","lname","setAmount","am","setPhone","p","setEmail","e","setTransactionId","t","setWebhookUrl","wh","setCustom1","c","setCustom2","setCustom3","setCustom4","setCustom5","setCustom6","setCustom7","setCustom8","setCustom9","setCustom10","setSubject","sub","setDescription","des","setPaymentModalTitle","title","setReturnUrl","url","setHeaderBackgroundColour","hbg","setHeaderTitleColour","htc","setCancelBtnColour","cbc","setMerchantName","mn","PaymentResponse","constructor","paymentId","isSuccess","token","returnCode","errorMessage","fromJson","json","toJson","scPaymentResponse","id","statusId","status","transId"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAEtD,MAAMC,aAAa,GACjB,+EAA+E,GAC/ED,QAAQ,CAACE,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,OAAO,MAAMC,mBAAmB,GAAGN,aAAa,CAACM,mBAAmB,GAChEN,aAAa,CAACM,mBAAmB,GACjC,IAAIC,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACP,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEL,OAAO,SAASQ,gBAAgBA,CAAA,EAAqB;EACnD,IAAGT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AI,CAACA,MAAM;MACnBC,OAAO,EAAE,IAAI,CAACA,OAAO;MACrBvF,OAAO,EAAE,IAAI,CAACA;IAChB,CAAC;EACH;AACF","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
export declare const SkipcashReactnative: any;
|
|
2
|
+
export declare function isWalletHasCards(): Promise<boolean>;
|
|
3
|
+
export declare function setupNewCard(): void;
|
|
4
|
+
export declare function initiateApplePay(paymentData: string): void;
|
|
5
|
+
export declare function initiatePaymentModel(paymentData: PaymentData): void;
|
|
6
|
+
export interface PaymentDataInerface {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
summaryItems: {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export declare class PaymentData implements PaymentDataInerface {
|
|
13
|
+
private merchantIdentifier;
|
|
14
|
+
private countryCode;
|
|
15
|
+
private currencyCode;
|
|
16
|
+
private createPaymentLinkEndPoint;
|
|
17
|
+
private authorizationHeader;
|
|
18
|
+
private firstName;
|
|
19
|
+
private lastName;
|
|
20
|
+
private amount;
|
|
21
|
+
private phone;
|
|
22
|
+
private email;
|
|
23
|
+
private transactionId;
|
|
24
|
+
private webhookUrl;
|
|
25
|
+
private returnUrl;
|
|
26
|
+
private custom1;
|
|
27
|
+
private custom2;
|
|
28
|
+
private custom3;
|
|
29
|
+
private custom4;
|
|
30
|
+
private custom5;
|
|
31
|
+
private custom6;
|
|
32
|
+
private custom7;
|
|
33
|
+
private custom8;
|
|
34
|
+
private custom9;
|
|
35
|
+
private custom10;
|
|
36
|
+
private subject;
|
|
37
|
+
private description;
|
|
38
|
+
private paymentModalTitle;
|
|
39
|
+
private headerBackgroundColour;
|
|
40
|
+
private headerTitleColour;
|
|
41
|
+
private cancelColour;
|
|
42
|
+
private merchantName;
|
|
43
|
+
summaryItems: {
|
|
44
|
+
[key: string]: string;
|
|
45
|
+
};
|
|
46
|
+
getCurrencyCode(): string;
|
|
47
|
+
getCountryCode(): string;
|
|
48
|
+
setSummaryItem(item: string, amount: string): void;
|
|
49
|
+
getSummaryItem(item: string): any;
|
|
50
|
+
getAllSummaryItems(): any;
|
|
51
|
+
clearSummaryItems(): void;
|
|
52
|
+
setMerchantIdentifier(mid: string): void;
|
|
53
|
+
getMerchantIdentifier(): string;
|
|
54
|
+
setPaymentLinkEndPoint(ple: string): void;
|
|
55
|
+
getPaymentLinkEndPoint(): string;
|
|
56
|
+
setAuthorizationHeader(authH: string): void;
|
|
57
|
+
getAuthorizationHeader(): string;
|
|
58
|
+
setFirstName(fname: string): void;
|
|
59
|
+
getFirstName(): string;
|
|
60
|
+
setLastName(lname: string): void;
|
|
61
|
+
getLastName(): string;
|
|
62
|
+
setAmount(am: string): void;
|
|
63
|
+
getAmount(): string;
|
|
64
|
+
setPhone(p: string): void;
|
|
65
|
+
getPhone(): string;
|
|
66
|
+
setEmail(e: string): void;
|
|
67
|
+
getEmail(): string;
|
|
68
|
+
setTransactionId(t: string): void;
|
|
69
|
+
getTransactionId(): string;
|
|
70
|
+
setWebhookUrl(wh: string): void;
|
|
71
|
+
getWebhookUrl(): string;
|
|
72
|
+
setCustom1(c: string): void;
|
|
73
|
+
getCustom1(): string;
|
|
74
|
+
setCustom2(c: string): void;
|
|
75
|
+
getCustom2(): string;
|
|
76
|
+
setCustom3(c: string): void;
|
|
77
|
+
getCustom3(): string;
|
|
78
|
+
setCustom4(c: string): void;
|
|
79
|
+
getCustom4(): string;
|
|
80
|
+
setCustom5(c: string): void;
|
|
81
|
+
getCustom5(): string;
|
|
82
|
+
setCustom6(c: string): void;
|
|
83
|
+
getCustom6(): string;
|
|
84
|
+
setCustom7(c: string): void;
|
|
85
|
+
getCustom7(): string;
|
|
86
|
+
setCustom8(c: string): void;
|
|
87
|
+
getCustom8(): string;
|
|
88
|
+
setCustom9(c: string): void;
|
|
89
|
+
getCustom9(): string;
|
|
90
|
+
setCustom10(c: string): void;
|
|
91
|
+
getCustom10(): string;
|
|
92
|
+
setSubject(sub: string): void;
|
|
93
|
+
getSubject(): string;
|
|
94
|
+
setDescription(des: string): void;
|
|
95
|
+
getDescription(): string;
|
|
96
|
+
setPaymentModalTitle(title: string): void;
|
|
97
|
+
getPaymentModalTitle(): string;
|
|
98
|
+
setReturnUrl(url: string): void;
|
|
99
|
+
getReturnUrl(): string;
|
|
100
|
+
setHeaderBackgroundColour(hbg: string): void;
|
|
101
|
+
getHeaderBackgroundColour(): string;
|
|
102
|
+
setHeaderTitleColour(htc: string): void;
|
|
103
|
+
getHeaderTitleColour(): string;
|
|
104
|
+
setCancelBtnColour(cbc: string): void;
|
|
105
|
+
getCancelBtnColour(): string;
|
|
106
|
+
setMerchantName(mn: string): void;
|
|
107
|
+
getMerchantName(): string;
|
|
108
|
+
}
|
|
109
|
+
export declare class PaymentResponse {
|
|
110
|
+
transactionId: String;
|
|
111
|
+
paymentId: String;
|
|
112
|
+
isSuccess: Boolean;
|
|
113
|
+
token: String;
|
|
114
|
+
returnCode: number;
|
|
115
|
+
errorMessage: String;
|
|
116
|
+
constructor(transactionId: String, paymentId: String, isSuccess: Boolean, token: String, returnCode: number, errorMessage: String);
|
|
117
|
+
static fromJson(json: any): PaymentResponse;
|
|
118
|
+
toJson(): {
|
|
119
|
+
paymentId: String;
|
|
120
|
+
isSuccess: Boolean;
|
|
121
|
+
token: String;
|
|
122
|
+
returnCode: number;
|
|
123
|
+
errorMessage: String;
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
export declare class scPaymentResponse {
|
|
127
|
+
id: String;
|
|
128
|
+
statusId: String;
|
|
129
|
+
status: String;
|
|
130
|
+
transId: String;
|
|
131
|
+
custom1: String;
|
|
132
|
+
constructor(id: String, statusId: String, status: String, transId: String, custom1: String);
|
|
133
|
+
static fromJson(json: any): scPaymentResponse;
|
|
134
|
+
toJson(): {
|
|
135
|
+
id: String;
|
|
136
|
+
statusId: String;
|
|
137
|
+
status: String;
|
|
138
|
+
transId: String;
|
|
139
|
+
custom1: String;
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,mBAAmB,KAS3B,CAAC;AAEN,wBAAgB,gBAAgB,IAAI,OAAO,CAAC,OAAO,CAAC,CAOnD;AAED,wBAAgB,YAAY,SAM3B;AAED,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,QAMnD;AAGD,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,WAAW,QA2C5D;AAED,MAAM,WAAW,mBAAmB;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,YAAY,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACzC;AAED,qBAAa,WAAY,YAAW,mBAAmB;IACrD,OAAO,CAAC,kBAAkB,CAAc;IACxC,OAAO,CAAC,WAAW,CAAgB;IACnC,OAAO,CAAC,YAAY,CAAiB;IACrC,OAAO,CAAC,yBAAyB,CAAc;IAC/C,OAAO,CAAC,mBAAmB,CAAc;IACzC,OAAO,CAAC,SAAS,CAAc;IAC/B,OAAO,CAAC,QAAQ,CAAc;IAC9B,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,aAAa,CAAc;IACnC,OAAO,CAAC,UAAU,CAAc;IAEhC,OAAO,CAAC,SAAS,CAAc;IAC/B,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,OA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M,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM;IASjI,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG;IAKzB,MAAM;;;;;;;CASP;AAGD,qBAAa,iBAAiB;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;gBAEJ,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAQ1F,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG;IAKzB,MAAM;;;;;;;CASP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
export declare const SkipcashReactnative: any;
|
|
2
|
+
export declare function isWalletHasCards(): Promise<boolean>;
|
|
3
|
+
export declare function setupNewCard(): void;
|
|
4
|
+
export declare function initiateApplePay(paymentData: string): void;
|
|
5
|
+
export declare function initiatePaymentModel(paymentData: PaymentData): void;
|
|
6
|
+
export interface PaymentDataInerface {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
summaryItems: {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export declare class PaymentData implements PaymentDataInerface {
|
|
13
|
+
private merchantIdentifier;
|
|
14
|
+
private countryCode;
|
|
15
|
+
private currencyCode;
|
|
16
|
+
private createPaymentLinkEndPoint;
|
|
17
|
+
private authorizationHeader;
|
|
18
|
+
private firstName;
|
|
19
|
+
private lastName;
|
|
20
|
+
private amount;
|
|
21
|
+
private phone;
|
|
22
|
+
private email;
|
|
23
|
+
private transactionId;
|
|
24
|
+
private webhookUrl;
|
|
25
|
+
private returnUrl;
|
|
26
|
+
private custom1;
|
|
27
|
+
private custom2;
|
|
28
|
+
private custom3;
|
|
29
|
+
private custom4;
|
|
30
|
+
private custom5;
|
|
31
|
+
private custom6;
|
|
32
|
+
private custom7;
|
|
33
|
+
private custom8;
|
|
34
|
+
private custom9;
|
|
35
|
+
private custom10;
|
|
36
|
+
private subject;
|
|
37
|
+
private description;
|
|
38
|
+
private paymentModalTitle;
|
|
39
|
+
private headerBackgroundColour;
|
|
40
|
+
private headerTitleColour;
|
|
41
|
+
private cancelColour;
|
|
42
|
+
private merchantName;
|
|
43
|
+
summaryItems: {
|
|
44
|
+
[key: string]: string;
|
|
45
|
+
};
|
|
46
|
+
getCurrencyCode(): string;
|
|
47
|
+
getCountryCode(): string;
|
|
48
|
+
setSummaryItem(item: string, amount: string): void;
|
|
49
|
+
getSummaryItem(item: string): any;
|
|
50
|
+
getAllSummaryItems(): any;
|
|
51
|
+
clearSummaryItems(): void;
|
|
52
|
+
setMerchantIdentifier(mid: string): void;
|
|
53
|
+
getMerchantIdentifier(): string;
|
|
54
|
+
setPaymentLinkEndPoint(ple: string): void;
|
|
55
|
+
getPaymentLinkEndPoint(): string;
|
|
56
|
+
setAuthorizationHeader(authH: string): void;
|
|
57
|
+
getAuthorizationHeader(): string;
|
|
58
|
+
setFirstName(fname: string): void;
|
|
59
|
+
getFirstName(): string;
|
|
60
|
+
setLastName(lname: string): void;
|
|
61
|
+
getLastName(): string;
|
|
62
|
+
setAmount(am: string): void;
|
|
63
|
+
getAmount(): string;
|
|
64
|
+
setPhone(p: string): void;
|
|
65
|
+
getPhone(): string;
|
|
66
|
+
setEmail(e: string): void;
|
|
67
|
+
getEmail(): string;
|
|
68
|
+
setTransactionId(t: string): void;
|
|
69
|
+
getTransactionId(): string;
|
|
70
|
+
setWebhookUrl(wh: string): void;
|
|
71
|
+
getWebhookUrl(): string;
|
|
72
|
+
setCustom1(c: string): void;
|
|
73
|
+
getCustom1(): string;
|
|
74
|
+
setCustom2(c: string): void;
|
|
75
|
+
getCustom2(): string;
|
|
76
|
+
setCustom3(c: string): void;
|
|
77
|
+
getCustom3(): string;
|
|
78
|
+
setCustom4(c: string): void;
|
|
79
|
+
getCustom4(): string;
|
|
80
|
+
setCustom5(c: string): void;
|
|
81
|
+
getCustom5(): string;
|
|
82
|
+
setCustom6(c: string): void;
|
|
83
|
+
getCustom6(): string;
|
|
84
|
+
setCustom7(c: string): void;
|
|
85
|
+
getCustom7(): string;
|
|
86
|
+
setCustom8(c: string): void;
|
|
87
|
+
getCustom8(): string;
|
|
88
|
+
setCustom9(c: string): void;
|
|
89
|
+
getCustom9(): string;
|
|
90
|
+
setCustom10(c: string): void;
|
|
91
|
+
getCustom10(): string;
|
|
92
|
+
setSubject(sub: string): void;
|
|
93
|
+
getSubject(): string;
|
|
94
|
+
setDescription(des: string): void;
|
|
95
|
+
getDescription(): string;
|
|
96
|
+
setPaymentModalTitle(title: string): void;
|
|
97
|
+
getPaymentModalTitle(): string;
|
|
98
|
+
setReturnUrl(url: string): void;
|
|
99
|
+
getReturnUrl(): string;
|
|
100
|
+
setHeaderBackgroundColour(hbg: string): void;
|
|
101
|
+
getHeaderBackgroundColour(): string;
|
|
102
|
+
setHeaderTitleColour(htc: string): void;
|
|
103
|
+
getHeaderTitleColour(): string;
|
|
104
|
+
setCancelBtnColour(cbc: string): void;
|
|
105
|
+
getCancelBtnColour(): string;
|
|
106
|
+
setMerchantName(mn: string): void;
|
|
107
|
+
getMerchantName(): string;
|
|
108
|
+
}
|
|
109
|
+
export declare class PaymentResponse {
|
|
110
|
+
transactionId: String;
|
|
111
|
+
paymentId: String;
|
|
112
|
+
isSuccess: Boolean;
|
|
113
|
+
token: String;
|
|
114
|
+
returnCode: number;
|
|
115
|
+
errorMessage: String;
|
|
116
|
+
constructor(transactionId: String, paymentId: String, isSuccess: Boolean, token: String, returnCode: number, errorMessage: String);
|
|
117
|
+
static fromJson(json: any): PaymentResponse;
|
|
118
|
+
toJson(): {
|
|
119
|
+
paymentId: String;
|
|
120
|
+
isSuccess: Boolean;
|
|
121
|
+
token: String;
|
|
122
|
+
returnCode: number;
|
|
123
|
+
errorMessage: String;
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
export declare class scPaymentResponse {
|
|
127
|
+
id: String;
|
|
128
|
+
statusId: String;
|
|
129
|
+
status: String;
|
|
130
|
+
transId: String;
|
|
131
|
+
custom1: String;
|
|
132
|
+
constructor(id: String, statusId: String, status: String, transId: String, custom1: String);
|
|
133
|
+
static fromJson(json: any): scPaymentResponse;
|
|
134
|
+
toJson(): {
|
|
135
|
+
id: String;
|
|
136
|
+
statusId: String;
|
|
137
|
+
status: String;
|
|
138
|
+
transId: String;
|
|
139
|
+
custom1: String;
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,mBAAmB,KAS3B,CAAC;AAEN,wBAAgB,gBAAgB,IAAI,OAAO,CAAC,OAAO,CAAC,CAOnD;AAED,wBAAgB,YAAY,SAM3B;AAED,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,QAMnD;AAGD,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,WAAW,QA2C5D;AAED,MAAM,WAAW,mBAAmB;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,YAAY,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACzC;AAED,qBAAa,WAAY,YAAW,mBAAmB;IACrD,OAAO,CAAC,kBAAkB,CAAc;IACxC,OAAO,CAAC,WAAW,CAAgB;IACnC,OAAO,CAAC,YAAY,CAAiB;IACrC,OAAO,CAAC,yBAAyB,CAAc;IAC/C,OAAO,CAAC,mBAAmB,CAAc;IACzC,OAAO,CAAC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