react-native-cashfree-pg-sdk 1.0.2-dev.0 → 1.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.
@@ -116,5 +116,4 @@ class CFErrorResponse {
116
116
  exports.CFErrorResponse = CFErrorResponse;
117
117
  var CFPaymentGatewayService = new CFPaymentGateway();
118
118
  exports.CFPaymentGatewayService = CFPaymentGatewayService;
119
- //# sourceMappingURL=index.js.mapatewayService;
120
119
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-cashfree-pg-sdk",
3
- "version": "1.0.2-dev.0",
3
+ "version": "1.0.2",
4
4
  "description": "Cashfree PG Plugin for React Native",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
package/src/index.js CHANGED
@@ -47,12 +47,12 @@ class CFPaymentGateway {
47
47
  removeCallback() {
48
48
  if (this.successSubscription !== undefined &&
49
49
  this.successSubscription !== null) {
50
- this.emitter.removeSubscription(this.successSubscription);
50
+ this.successSubscription.remove();
51
51
  this.successSubscription = null;
52
52
  }
53
53
  if (this.failureSubscription !== undefined &&
54
54
  this.failureSubscription !== null) {
55
- this.emitter.removeSubscription(this.failureSubscription);
55
+ this.failureSubscription.remove();
56
56
  this.failureSubscription = null;
57
57
  }
58
58
  }