cordova-plugin-netcontroll-integration 1.0.76 → 1.0.79

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- Versao 1.0.76
1
+ Versao 1.0.79
2
2
 
3
3
  Funções internas de integração XMenu / NetControll
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cordova-plugin-netcontroll-integration",
3
- "version": "1.0.76",
3
+ "version": "1.0.79",
4
4
  "description": "Plugin cordova de integracao para uso interno (NetControll/ XMenu)",
5
5
  "cordova": {
6
6
  "id": "cordova-plugin-netcontroll-integration",
package/plugin.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version='1.0' encoding='utf-8'?>
2
- <plugin id="cordova-plugin-netcontroll-integration" version="1.0.76"
2
+ <plugin id="cordova-plugin-netcontroll-integration" version="1.0.79"
3
3
  xmlns="http://apache.org/cordova/ns/plugins/1.0"
4
4
  xmlns:android="http://schemas.android.com/apk/res/android">
5
5
 
@@ -831,8 +831,8 @@ public class CieloLioLocal {
831
831
  try {
832
832
  print_initialize();
833
833
  printerManager.printImage(bitmap, alignCenter, printerListener);
834
- boolean result = this.print_SimpleText(
835
- "\n\n\n\n\n",
834
+ boolean result = print_SimpleText(
835
+ "\n\n\n\n\n\n\n",
836
836
  0,
837
837
  18,
838
838
  8,
@@ -149,10 +149,11 @@ public class RedeGPos700 {
149
149
  if (data != null) {
150
150
  Payment payment = RedePayments.getPaymentFromIntent(data);
151
151
  if (payment.getStatus() == PaymentStatus.AUTHORIZED) {
152
- // Receipt receipt = payment.getReceipt();
152
+ //Receipt receipt = payment.getReceipt();
153
153
 
154
- String varResultStrJson = parseObjToJsonSrtring(payment);
155
- callbackContext.success(varResultStrJson);
154
+ // String varResultStrJson = parseObjToJsonSrtring(payment);
155
+ // callbackContext.success(varResultStrJson);
156
+ callbackContext.success("PAGAMENTO OK");
156
157
  } else if (payment.getStatus() == PaymentStatus.FAILED) {
157
158
  callbackContext.success(parseObjToJsonSrtring(payment));
158
159
  } else if (payment.getStatus() == PaymentStatus.DECLINED) {
@@ -180,16 +181,6 @@ public class RedeGPos700 {
180
181
  } else if (requestCode == REPRINT_REQUEST_CODE) {
181
182
  if (resultCode == RESULT_OK) {
182
183
  callbackContext.success("Reimpressão efetuada com sucesso");
183
- // if (data != null) {
184
- // Payment payment = RedePayments.getPaymentFromIntent(data);
185
- // if (payment.getStatus() == PaymentStatus.AUTHORIZED) {
186
- // callbackContext.success(parseObjToJsonSrtring(payment));
187
- // } else if (payment.getStatus() == PaymentStatus.FAILED) {
188
- // callbackContext.success(parseObjToJsonSrtring(payment));
189
- // } else if (payment.getStatus() == PaymentStatus.DECLINED) {
190
- // callbackContext.success(parseObjToJsonSrtring(payment));
191
- // }
192
- // }
193
184
  } else if (resultCode == RESULT_CANCELED) {
194
185
  callbackContext.error("Reimpressão cancelada pelo usuário");
195
186
  }
@@ -197,9 +188,6 @@ public class RedeGPos700 {
197
188
  }
198
189
  };
199
190
  }
200
-
201
-
202
- // callbackContext.success("Testardo");
203
191
  } catch (Exception e) {
204
192
  callbackContext.error("Testar error: " + e.toString());
205
193
  }