Skip to content

Commit

Permalink
test(core): Update test payment methods
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Dec 8, 2020
1 parent a711780 commit d1f7192
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/core/e2e/fixtures/test-payment-methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand All @@ -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 },
Expand Down Expand Up @@ -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,
Expand All @@ -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: {
Expand Down Expand Up @@ -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 },
Expand All @@ -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,
Expand Down

0 comments on commit d1f7192

Please sign in to comment.