omnipay-reactnative-sdk 0.7.0 → 0.7.1
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.
|
@@ -48,37 +48,37 @@ public class OmnipayActivityModule extends ReactContextBaseJavaModule {
|
|
|
48
48
|
return constants;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
@ReactMethod
|
|
52
|
-
public void startActivity(String key, Promise promise) {
|
|
53
|
-
|
|
51
|
+
// @ReactMethod
|
|
52
|
+
// public void startActivity(String key, Promise promise) {
|
|
53
|
+
// Activity currentActivity = getCurrentActivity();
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
// if (currentActivity == null) {
|
|
56
|
+
// promise.reject(ACTIVITY_DOES_NOT_EXIST, "Activity doesn't exist");
|
|
57
|
+
// return;
|
|
58
|
+
// }
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
// mPromise = promise;
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
// try {
|
|
63
|
+
// String intentAction = options.getString("action") == null ? Intent.ACTION_VIEW : options.getString("action");
|
|
64
|
+
// Intent intent = new Intent(intentAction);
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
66
|
+
// if (options.getString("uri") != null) {
|
|
67
|
+
// intent.setData(Uri.parse(options.getString("uri")));
|
|
68
|
+
// }
|
|
69
|
+
// if (options.getMap("extra") != null) {
|
|
70
|
+
// intent.putExtras(Arguments.toBundle(options.getMap("extra")));
|
|
71
|
+
// }
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
// returnKey = key;
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
// currentActivity.startActivityForResult(intent, ACTIVITY_REQUEST_CODE);
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
77
|
+
// } catch (Exception e) {
|
|
78
|
+
// mPromise.reject(ERROR, e);
|
|
79
|
+
// mPromise = null;
|
|
80
|
+
// }
|
|
81
|
+
// }
|
|
82
82
|
|
|
83
83
|
@ReactMethod
|
|
84
84
|
public void initiateHorizonTransaction(double amt, String tranType, String colour, boolean print, String rrn, String stan, Promise promise) {
|
|
@@ -115,7 +115,7 @@ public class OmnipayActivityModule extends ReactContextBaseJavaModule {
|
|
|
115
115
|
String statusMessage = data.getStringExtra("statusMessage");
|
|
116
116
|
String status = data.getStringExtra("status");
|
|
117
117
|
String datax = data.getStringExtra("data");
|
|
118
|
-
String result = "-status-"+status+"-data-"+
|
|
118
|
+
String result = "-status-"+status+"-data-"+datax+"-message-"+statusMessage;
|
|
119
119
|
|
|
120
120
|
// String returnValue = data.getStringExtra(returnKey);
|
|
121
121
|
mPromise.resolve(result);
|