aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-01-11 15:26:07 -0300
committerSebastian <sebasjm@gmail.com>2023-01-11 15:30:14 -0300
commite87073d42a2f51405d1a1f6be27cb378b552dcdf (patch)
tree841e2b994eae7c91d58ffdbc81d8662e0bda90d7 /packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx
parent335d22b12b3d8ed1a14d39bf8ca17faade9ca34c (diff)
downloadwallet-core-e87073d42a2f51405d1a1f6be27cb378b552dcdf.tar.xz
add kyc warning
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx')
-rw-r--r--packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx14
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx b/packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx
index cc2ed9013..f2ebb3919 100644
--- a/packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx
@@ -221,6 +221,14 @@ const transactionError = {
message: "Unexpected error code in response",
};
+const kycError = {
+ code: 7025,
+ hint: "KYC check required for withdrawal",
+ kycUrl:
+ "http://localhost:6666/oauth/v2/login?client_id=taler-exchange&redirect_uri=http%3A%2F%2Flocalhost%3A8081%2F%2Fkyc-proof%2F59WFS5VXXY3CEE25BM45XPB7ZCDQZNZ46PJCMNXK05P65T9M1X90%2FKYC-PROVIDER-MYPROV%2F1",
+ when: AbsoluteTime.now(),
+};
+
export const Withdraw = tests.createExample(TestedComponent, {
transaction: exampleData.withdraw,
});
@@ -257,6 +265,12 @@ export const WithdrawError = tests.createExample(TestedComponent, {
},
});
+export const WithdrawErrorKYC = tests.createExample(TestedComponent, {
+ transaction: {
+ ...exampleData.withdraw,
+ error: kycError,
+ },
+});
// export const WithdrawErrorInDevMode = tests.createExampleInCustomContext(
// TestedComponent,
// {