diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-08-19 20:56:10 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-08-19 20:56:40 +0530 |
commit | d9b73a30c1ce67f611f9d605bdf163c3e868f2c2 (patch) | |
tree | ffdbf9d5e1556df5d1a57a8870fa8057c7ba4ef5 /packages/taler-integrationtests/src/scenario-prompt-payment.ts | |
parent | 082498b20d2a73009bb4193cd95ab409159fb972 (diff) | |
download | wallet-core-d9b73a30c1ce67f611f9d605bdf163c3e868f2c2.tar.gz wallet-core-d9b73a30c1ce67f611f9d605bdf163c3e868f2c2.tar.bz2 wallet-core-d9b73a30c1ce67f611f9d605bdf163c3e868f2c2.zip |
test case for /paid API, implement fault-injected merchant
Diffstat (limited to 'packages/taler-integrationtests/src/scenario-prompt-payment.ts')
-rw-r--r-- | packages/taler-integrationtests/src/scenario-prompt-payment.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-integrationtests/src/scenario-prompt-payment.ts b/packages/taler-integrationtests/src/scenario-prompt-payment.ts index 3e4bfc6c2..3c34075d1 100644 --- a/packages/taler-integrationtests/src/scenario-prompt-payment.ts +++ b/packages/taler-integrationtests/src/scenario-prompt-payment.ts @@ -17,7 +17,7 @@ /** * Imports. */ -import { runTest, GlobalTestState } from "./harness"; +import { runTest, GlobalTestState, MerchantPrivateApi } from "./harness"; import { createSimpleTestkudosEnvironment, withdrawViaBank } from "./helpers"; /** @@ -39,7 +39,7 @@ runTest(async (t: GlobalTestState) => { // Set up order. - const orderResp = await merchant.createOrder("default", { + const orderResp = await MerchantPrivateApi.createOrder(merchant, "default", { order: { summary: "Buy me!", amount: "TESTKUDOS:5", @@ -47,7 +47,7 @@ runTest(async (t: GlobalTestState) => { }, }); - let orderStatus = await merchant.queryPrivateOrderStatus({ + let orderStatus = await MerchantPrivateApi.queryPrivateOrderStatus(merchant, { orderId: orderResp.order_id, }); |