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
- Activity currentActivity = getCurrentActivity();
51
+ // @ReactMethod
52
+ // public void startActivity(String key, Promise promise) {
53
+ // Activity currentActivity = getCurrentActivity();
54
54
 
55
- if (currentActivity == null) {
56
- promise.reject(ACTIVITY_DOES_NOT_EXIST, "Activity doesn't exist");
57
- return;
58
- }
55
+ // if (currentActivity == null) {
56
+ // promise.reject(ACTIVITY_DOES_NOT_EXIST, "Activity doesn't exist");
57
+ // return;
58
+ // }
59
59
 
60
- mPromise = promise;
60
+ // mPromise = promise;
61
61
 
62
- try {
63
- String intentAction = options.getString("action") == null ? Intent.ACTION_VIEW : options.getString("action");
64
- Intent intent = new Intent(intentAction);
62
+ // try {
63
+ // String intentAction = options.getString("action") == null ? Intent.ACTION_VIEW : options.getString("action");
64
+ // Intent intent = new Intent(intentAction);
65
65
 
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
- }
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
- returnKey = key;
73
+ // returnKey = key;
74
74
 
75
- currentActivity.startActivityForResult(intent, ACTIVITY_REQUEST_CODE);
75
+ // currentActivity.startActivityForResult(intent, ACTIVITY_REQUEST_CODE);
76
76
 
77
- } catch (Exception e) {
78
- mPromise.reject(ERROR, e);
79
- mPromise = null;
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-"+data+"-message-"+message;
118
+ String result = "-status-"+status+"-data-"+datax+"-message-"+statusMessage;
119
119
 
120
120
  // String returnValue = data.getStringExtra(returnKey);
121
121
  mPromise.resolve(result);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnipay-reactnative-sdk",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Omnipay react native sdk",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",