@expensify/react-native-wallet 0.1.39 → 0.1.40
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.
|
@@ -79,15 +79,13 @@ class WalletModule internal constructor(context: ReactApplicationContext) :
|
|
|
79
79
|
val localPromise = pendingPushTokenizePromise
|
|
80
80
|
pendingPushTokenizePromise = null
|
|
81
81
|
if (resultCode == RESULT_OK) {
|
|
82
|
-
data?.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
localPromise?.resolve(TokenizationStatus.SUCCESS.code)
|
|
90
|
-
}
|
|
82
|
+
val tokenId = data?.getStringExtra(TapAndPay.EXTRA_ISSUER_TOKEN_ID)
|
|
83
|
+
sendEvent(
|
|
84
|
+
context,
|
|
85
|
+
OnCardActivatedEvent.NAME,
|
|
86
|
+
OnCardActivatedEvent("activated", tokenId).toMap()
|
|
87
|
+
)
|
|
88
|
+
localPromise?.resolve(TokenizationStatus.SUCCESS.code)
|
|
91
89
|
} else if (resultCode == RESULT_CANCELED) {
|
|
92
90
|
sendEvent(
|
|
93
91
|
context,
|
|
@@ -95,6 +93,8 @@ class WalletModule internal constructor(context: ReactApplicationContext) :
|
|
|
95
93
|
OnCardActivatedEvent("canceled", null).toMap()
|
|
96
94
|
)
|
|
97
95
|
localPromise?.resolve(TokenizationStatus.CANCELED.code)
|
|
96
|
+
} else {
|
|
97
|
+
localPromise?.resolve(TokenizationStatus.ERROR.code)
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expensify/react-native-wallet",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.40",
|
|
4
4
|
"description": "A React Native module designed for seamless integration of Card Push Provisioning into Apple Wallet and Google Wallet, enabling easy and secure addition of payment cards directly from your application.",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"main": "lib/commonjs/index",
|