From d1f7192378154cec8d275840df6b807ed385d4c6 Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Tue, 8 Dec 2020 09:31:41 +0100 Subject: [PATCH] test(core): Update test payment methods --- packages/core/e2e/fixtures/test-payment-methods.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/core/e2e/fixtures/test-payment-methods.ts b/packages/core/e2e/fixtures/test-payment-methods.ts index 0024a7affc..33cae7cffa 100644 --- a/packages/core/e2e/fixtures/test-payment-methods.ts +++ b/packages/core/e2e/fixtures/test-payment-methods.ts @@ -8,7 +8,7 @@ export const testSuccessfulPaymentMethod = new PaymentMethodHandler({ args: {}, createPayment: (ctx, order, args, metadata) => { return { - amount: order.total, + amount: order.totalWithTax, state: 'Settled', transactionId: '12345', metadata: { public: metadata }, @@ -29,7 +29,7 @@ export const twoStagePaymentMethod = new PaymentMethodHandler({ args: {}, createPayment: (ctx, order, args, metadata) => { return { - amount: order.total, + amount: order.totalWithTax, state: 'Authorized', transactionId: '12345', metadata: { public: metadata }, @@ -57,7 +57,7 @@ export const singleStageRefundablePaymentMethod = new PaymentMethodHandler({ args: {}, createPayment: (ctx, order, args, metadata) => { return { - amount: order.total, + amount: order.totalWithTax, state: 'Settled', transactionId: '12345', metadata, @@ -84,7 +84,7 @@ export const failsToSettlePaymentMethod = new PaymentMethodHandler({ args: {}, createPayment: (ctx, order, args, metadata) => { return { - amount: order.total, + amount: order.totalWithTax, state: 'Authorized', transactionId: '12345', metadata: { @@ -114,7 +114,7 @@ export const testFailingPaymentMethod = new PaymentMethodHandler({ args: {}, createPayment: (ctx, order, args, metadata) => { return { - amount: order.total, + amount: order.totalWithTax, state: 'Declined', errorMessage: 'Insufficient funds', metadata: { public: metadata }, @@ -130,7 +130,7 @@ export const testErrorPaymentMethod = new PaymentMethodHandler({ args: {}, createPayment: (ctx, order, args, metadata) => { return { - amount: order.total, + amount: order.totalWithTax, state: 'Error', errorMessage: 'Something went horribly wrong', metadata,