diff --git a/android/src/main/java/expo/modules/yoco/ReactNativeYocoModule.kt b/android/src/main/java/expo/modules/yoco/ReactNativeYocoModule.kt index 8254060..f3eb7a4 100644 --- a/android/src/main/java/expo/modules/yoco/ReactNativeYocoModule.kt +++ b/android/src/main/java/expo/modules/yoco/ReactNativeYocoModule.kt @@ -72,8 +72,8 @@ class ReactNativeYocoModule : Module() { YocoSDK.pairTerminal(context = currentActivity) } catch (e: Exception) { + pairTerminalPromise = null promise.reject(e.toCodedException()) - throw e } } @@ -106,8 +106,8 @@ class ReactNativeYocoModule : Module() { null, ) } catch (e: Exception) { + chargePromise = null promise.reject(e.toCodedException()) - throw e } } @@ -188,8 +188,8 @@ class ReactNativeYocoModule : Module() { null, ) } catch (e: Exception) { + refundPromise = null promise.reject(e.toCodedException()) - throw e } }.runOnQueue(Queues.MAIN) diff --git a/android/src/main/java/expo/modules/yoco/data/result/ReactNativeYocoPaymentResult.kt b/android/src/main/java/expo/modules/yoco/data/result/ReactNativeYocoPaymentResult.kt index 28870cd..3caa50f 100644 --- a/android/src/main/java/expo/modules/yoco/data/result/ReactNativeYocoPaymentResult.kt +++ b/android/src/main/java/expo/modules/yoco/data/result/ReactNativeYocoPaymentResult.kt @@ -7,6 +7,8 @@ import expo.modules.yoco.enums.* class ReceiptInfo : Record { @Field var authorizationCode: String? = null + + @Field var transactionTime: String? = null fun injectValues(receiptInfo: com.yoco.payments.sdk.data.result.ReceiptInfo?): ReceiptInfo {