aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/integrationtests/test-payment-template.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-05-16 13:19:17 +0200
committerFlorian Dold <florian@dold.me>2024-05-16 13:19:23 +0200
commitf0decd3521440d6119ad9333949ce67653d8b2c2 (patch)
tree7e14203552b811448136802fb00eeccadc04071e /packages/taler-harness/src/integrationtests/test-payment-template.ts
parent98c188c1b14f73a6b81f41a0cacd6195bb53208e (diff)
downloadwallet-core-f0decd3521440d6119ad9333949ce67653d8b2c2.tar.xz
wallet-core: query templates, refactor API declarations
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-payment-template.ts')
-rw-r--r--packages/taler-harness/src/integrationtests/test-payment-template.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-payment-template.ts b/packages/taler-harness/src/integrationtests/test-payment-template.ts
index 96e4de119..fb69f2571 100644
--- a/packages/taler-harness/src/integrationtests/test-payment-template.ts
+++ b/packages/taler-harness/src/integrationtests/test-payment-template.ts
@@ -18,6 +18,7 @@
* Imports.
*/
import {
+ AmountString,
ConfirmPayResultType,
Duration,
MerchantApiClient,
@@ -54,6 +55,9 @@ export async function runPaymentTemplateTest(t: GlobalTestState) {
),
summary: "hello, I'm a summary",
},
+ editable_defaults: {
+ amount: "TESTKUDOS:1" as AmountString,
+ },
});
narrowOpSuccessOrThrow("createTemplate", createTemplateRes);
@@ -72,7 +76,7 @@ export async function runPaymentTemplateTest(t: GlobalTestState) {
const preparePayResult = await walletClient.call(
WalletApiOperation.PreparePayForTemplate,
{
- talerPayTemplateUri: `taler+http://pay-template/localhost:${merchant.port}/template1?amount=TESTKUDOS:1`,
+ talerPayTemplateUri: `taler+http://pay-template/localhost:${merchant.port}/template1`,
templateParams: {},
},
);