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.
@@ -0,0 +1,367 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SkipcashReactnative = exports.PaymentResponse = exports.PaymentData = void 0;
7
+ exports.initiateApplePay = initiateApplePay;
8
+ exports.initiatePaymentModel = initiatePaymentModel;
9
+ exports.isWalletHasCards = isWalletHasCards;
10
+ exports.scPaymentResponse = void 0;
11
+ exports.setupNewCard = setupNewCard;
12
+ var _reactNative = require("react-native");
13
+ const LINKING_ERROR = `The package 'skipcash-reactnative' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({
14
+ ios: "- You have run 'pod install'\n",
15
+ default: ''
16
+ }) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
17
+ const SkipcashReactnative = exports.SkipcashReactnative = _reactNative.NativeModules.SkipcashReactnative ? _reactNative.NativeModules.SkipcashReactnative : new Proxy({}, {
18
+ get() {
19
+ throw new Error(LINKING_ERROR);
20
+ }
21
+ });
22
+ function isWalletHasCards() {
23
+ if (_reactNative.Platform.OS === 'ios') {
24
+ return SkipcashReactnative.isWalletHasCards();
25
+ } else {
26
+ console.log(`Method is not implemented for ${_reactNative.Platform.OS} `);
27
+ return Promise.reject(new Error(`Method is not implemented for ${_reactNative.Platform.OS}`));
28
+ }
29
+ }
30
+ function setupNewCard() {
31
+ if (_reactNative.Platform.OS === 'ios') {
32
+ SkipcashReactnative.setupNewCard();
33
+ } else {
34
+ console.log(`Method is not implemented for ${_reactNative.Platform.OS} `);
35
+ }
36
+ }
37
+ function initiateApplePay(paymentData) {
38
+ if (_reactNative.Platform.OS === 'ios') {
39
+ SkipcashReactnative.initiateApplePay(paymentData);
40
+ } else {
41
+ console.log(`Method is not implemented for ${_reactNative.Platform.OS} `);
42
+ }
43
+ }
44
+ function initiatePaymentModel(paymentData) {
45
+ if (_reactNative.Platform.OS === 'android') {
46
+ const _paymentData_ = {
47
+ "authorizationHeader": paymentData.getAuthorizationHeader(),
48
+ "createPaymentEndpoint": paymentData.getPaymentLinkEndPoint(),
49
+ "returnURL": paymentData.getReturnUrl(),
50
+ "paymentData": {
51
+ "amount": paymentData.getAmount(),
52
+ "firstName": paymentData.getFirstName(),
53
+ "lastName": paymentData.getLastName(),
54
+ "phone": paymentData.getPhone(),
55
+ "email": paymentData.getEmail(),
56
+ "transactionId": paymentData.getTransactionId(),
57
+ "webhookUrl": paymentData.getWebhookUrl(),
58
+ "custom1": paymentData.getCustom1(),
59
+ "custom2": paymentData.getCustom2(),
60
+ "custom3": paymentData.getCustom3(),
61
+ "custom4": paymentData.getCustom4(),
62
+ "custom5": paymentData.getCustom5(),
63
+ "custom6": paymentData.getCustom6(),
64
+ "custom7": paymentData.getCustom7(),
65
+ "custom8": paymentData.getCustom8(),
66
+ "custom9": paymentData.getCustom9(),
67
+ "custom10": paymentData.getCustom10(),
68
+ "description": paymentData.getDescription(),
69
+ "subject": paymentData.getSubject(),
70
+ "merchantName": paymentData.getMerchantName(),
71
+ "headerBackgroundColour": paymentData.getHeaderBackgroundColour(),
72
+ "paymentModalTitle": paymentData.getPaymentModalTitle(),
73
+ "headerTitleColour": paymentData.getHeaderTitleColour(),
74
+ "cancelColour": paymentData.getCancelBtnColour()
75
+ }
76
+ };
77
+ const paymentData_string = JSON.stringify(_paymentData_);
78
+ SkipcashReactnative.initiatePaymentModel(paymentData_string);
79
+ } else if (_reactNative.Platform.OS === 'ios') {
80
+ const paymentData_string = JSON.stringify(paymentData);
81
+ SkipcashReactnative.initiatePaymentModel(paymentData_string);
82
+ } else {
83
+ console.log(`Method is not implemented for ${_reactNative.Platform.OS} `);
84
+ }
85
+ }
86
+ class PaymentData {
87
+ merchantIdentifier = '';
88
+ countryCode = 'QA';
89
+ currencyCode = 'QAR';
90
+ createPaymentLinkEndPoint = '';
91
+ authorizationHeader = '';
92
+ firstName = '';
93
+ lastName = '';
94
+ amount = '';
95
+ phone = '';
96
+ email = '';
97
+ transactionId = '';
98
+ webhookUrl = '';
99
+ returnUrl = '';
100
+ custom1 = '';
101
+ custom2 = '';
102
+ custom3 = '';
103
+ custom4 = '';
104
+ custom5 = '';
105
+ custom6 = '';
106
+ custom7 = '';
107
+ custom8 = '';
108
+ custom9 = '';
109
+ custom10 = '';
110
+ subject = '';
111
+ description = '';
112
+ paymentModalTitle = '';
113
+ headerBackgroundColour = '#FFFFFF'; // android
114
+ headerTitleColour = '#000000'; // android
115
+ cancelColour = "#000000"; // android
116
+
117
+ merchantName = "You're Business Name";
118
+ summaryItems = {};
119
+ getCurrencyCode() {
120
+ return this.currencyCode;
121
+ }
122
+ getCountryCode() {
123
+ return this.countryCode;
124
+ }
125
+ setSummaryItem(item, amount) {
126
+ this.summaryItems[`${item}`] = amount;
127
+ }
128
+ getSummaryItem(item) {
129
+ return this.summaryItems[item];
130
+ }
131
+ getAllSummaryItems() {
132
+ return this.summaryItems;
133
+ }
134
+ clearSummaryItems() {
135
+ this.summaryItems = {};
136
+ }
137
+ setMerchantIdentifier(mid) {
138
+ this.merchantIdentifier = mid;
139
+ }
140
+ getMerchantIdentifier() {
141
+ return this.merchantIdentifier;
142
+ }
143
+ setPaymentLinkEndPoint(ple) {
144
+ this.createPaymentLinkEndPoint = ple;
145
+ }
146
+ getPaymentLinkEndPoint() {
147
+ return this.createPaymentLinkEndPoint;
148
+ }
149
+ setAuthorizationHeader(authH) {
150
+ this.authorizationHeader = authH;
151
+ }
152
+ getAuthorizationHeader() {
153
+ return this.authorizationHeader;
154
+ }
155
+ setFirstName(fname) {
156
+ this.firstName = fname;
157
+ }
158
+ getFirstName() {
159
+ return this.firstName;
160
+ }
161
+ setLastName(lname) {
162
+ this.lastName = lname;
163
+ }
164
+ getLastName() {
165
+ return this.lastName;
166
+ }
167
+ setAmount(am) {
168
+ this.amount = am;
169
+ }
170
+ getAmount() {
171
+ return this.amount;
172
+ }
173
+ setPhone(p) {
174
+ this.phone = p;
175
+ }
176
+ getPhone() {
177
+ return this.phone;
178
+ }
179
+ setEmail(e) {
180
+ this.email = e;
181
+ }
182
+ getEmail() {
183
+ return this.email;
184
+ }
185
+ setTransactionId(t) {
186
+ this.transactionId = t;
187
+ }
188
+ getTransactionId() {
189
+ return this.transactionId;
190
+ }
191
+ setWebhookUrl(wh) {
192
+ this.webhookUrl = wh;
193
+ }
194
+ getWebhookUrl() {
195
+ return this.webhookUrl;
196
+ }
197
+ setCustom1(c) {
198
+ this.custom1 = c;
199
+ }
200
+ getCustom1() {
201
+ return this.custom1;
202
+ }
203
+ setCustom2(c) {
204
+ this.custom2 = c;
205
+ }
206
+ getCustom2() {
207
+ return this.custom2;
208
+ }
209
+ setCustom3(c) {
210
+ this.custom3 = c;
211
+ }
212
+ getCustom3() {
213
+ return this.custom3;
214
+ }
215
+ setCustom4(c) {
216
+ this.custom4 = c;
217
+ }
218
+ getCustom4() {
219
+ return this.custom4;
220
+ }
221
+ setCustom5(c) {
222
+ this.custom5 = c;
223
+ }
224
+ getCustom5() {
225
+ return this.custom5;
226
+ }
227
+ setCustom6(c) {
228
+ this.custom6 = c;
229
+ }
230
+ getCustom6() {
231
+ return this.custom6;
232
+ }
233
+ setCustom7(c) {
234
+ this.custom7 = c;
235
+ }
236
+ getCustom7() {
237
+ return this.custom7;
238
+ }
239
+ setCustom8(c) {
240
+ this.custom8 = c;
241
+ }
242
+ getCustom8() {
243
+ return this.custom8;
244
+ }
245
+ setCustom9(c) {
246
+ this.custom9 = c;
247
+ }
248
+ getCustom9() {
249
+ return this.custom9;
250
+ }
251
+ setCustom10(c) {
252
+ this.custom10 = c;
253
+ }
254
+ getCustom10() {
255
+ return this.custom10;
256
+ }
257
+ setSubject(sub) {
258
+ this.subject = sub;
259
+ }
260
+ getSubject() {
261
+ return this.subject;
262
+ }
263
+ setDescription(des) {
264
+ this.description = des;
265
+ }
266
+ getDescription() {
267
+ return this.description;
268
+ }
269
+ setPaymentModalTitle(title) {
270
+ this.paymentModalTitle = title;
271
+ }
272
+ getPaymentModalTitle() {
273
+ return this.paymentModalTitle;
274
+ }
275
+ setReturnUrl(url) {
276
+ this.returnUrl = url;
277
+ }
278
+ getReturnUrl() {
279
+ return this.returnUrl;
280
+ }
281
+ setHeaderBackgroundColour(hbg) {
282
+ this.headerBackgroundColour = hbg;
283
+ }
284
+ getHeaderBackgroundColour() {
285
+ return this.headerBackgroundColour;
286
+ }
287
+ setHeaderTitleColour(htc) {
288
+ this.headerTitleColour = htc;
289
+ }
290
+ getHeaderTitleColour() {
291
+ return this.headerTitleColour;
292
+ }
293
+ setCancelBtnColour(cbc) {
294
+ this.cancelColour = cbc;
295
+ }
296
+ getCancelBtnColour() {
297
+ return this.cancelColour;
298
+ }
299
+ setMerchantName(mn) {
300
+ this.merchantName = mn;
301
+ }
302
+ getMerchantName() {
303
+ return this.merchantName;
304
+ }
305
+ }
306
+ exports.PaymentData = PaymentData;
307
+ class PaymentResponse {
308
+ constructor(transactionId, paymentId, isSuccess, token, returnCode, errorMessage) {
309
+ this.transactionId = transactionId;
310
+ this.paymentId = paymentId;
311
+ this.isSuccess = isSuccess;
312
+ this.token = token;
313
+ this.returnCode = returnCode;
314
+ this.errorMessage = errorMessage;
315
+ }
316
+ static fromJson(json) {
317
+ const {
318
+ transactionId,
319
+ paymentId,
320
+ isSuccess,
321
+ token,
322
+ returnCode,
323
+ errorMessage
324
+ } = json;
325
+ return new PaymentResponse(transactionId, paymentId, isSuccess, token, returnCode, errorMessage);
326
+ }
327
+ toJson() {
328
+ return {
329
+ paymentId: this.paymentId,
330
+ isSuccess: this.isSuccess,
331
+ token: this.token,
332
+ returnCode: this.returnCode,
333
+ errorMessage: this.errorMessage
334
+ };
335
+ }
336
+ }
337
+ exports.PaymentResponse = PaymentResponse;
338
+ class scPaymentResponse {
339
+ constructor(id, statusId, status, transId, custom1) {
340
+ this.id = id;
341
+ this.statusId = statusId;
342
+ this.status = status;
343
+ this.transId = transId;
344
+ this.custom1 = custom1;
345
+ }
346
+ static fromJson(json) {
347
+ const {
348
+ id,
349
+ statusId,
350
+ status,
351
+ transId,
352
+ custom1
353
+ } = json;
354
+ return new scPaymentResponse(id, statusId, status, transId, custom1);
355
+ }
356
+ toJson() {
357
+ return {
358
+ id: this.id,
359
+ statusId: this.statusId,
360
+ status: this.status,
361
+ transId: this.transId,
362
+ custom1: this.custom1
363
+ };
364
+ }
365
+ }
366
+ exports.scPaymentResponse = scPaymentResponse;
367
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","LINKING_ERROR","Platform","select","ios","default","SkipcashReactnative","exports","NativeModules","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,IAAAA,YAAA,GAAAC,OAAA;AAEA,MAAMC,aAAa,GACjB,+EAA+E,GAC/EC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAE1B,MAAMC,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,GAAGE,0BAAa,CAACF,mBAAmB,GAChEE,0BAAa,CAACF,mBAAmB,GACjC,IAAIG,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACV,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEE,SAASW,gBAAgBA,CAAA,EAAqB;EACnD,IAAGV,qBAAQ,CAACW,EAAE,KAAK,KAAK,EAAC;IACvB,OAAOP,mBAAmB,CAACM,gBAAgB,CAAC,CAAC;EAC/C,CAAC,MAAI;IACHE,OAAO,CAACC,GAAG,CAAC,iCAAiCb,qBAAQ,CAACW,EAAE,GAAG,CAAC;IAC5D,OAAOG,OAAO,CAACC,MAAM,CAAC,IAAIN,KAAK,CAAC,iCAAiCT,qBAAQ,CAACW,EAAE,EAAE,CAAC,CAAC;EAClF;AACF;AAEO,SAASK,YAAYA,CAAA,EAAE;EAC5B,IAAGhB,qBAAQ,CAACW,EAAE,KAAK,KAAK,EAAC;IACvBP,mBAAmB,CAACY,YAAY,CAAC,CAAC;EACpC,CAAC,MAAI;IACHJ,OAAO,CAACC,GAAG,CAAC,iCAAiCb,qBAAQ,CAACW,E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