Skip to content

Commit

Permalink
fix fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien2p committed Jan 26, 2023
1 parent f17e14c commit f518642
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/medusa/src/services/__fixtures__/payment-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ export class PaymentProcessor extends AbstractPaymentProcessor {
return Promise.resolve(undefined);
}

capturePayment(context: PaymentProcessorContext): Promise<PaymentProcessorError | void> {
return Promise.resolve(undefined);
}

deletePayment(paymentSessionData: Record<string, unknown>): Promise<PaymentProcessorError | void> {
return Promise.resolve(undefined);
}
Expand All @@ -65,17 +61,21 @@ export class PaymentProcessor extends AbstractPaymentProcessor {
return Promise.resolve({ } as PaymentProcessorSessionResponse);
}

refundPayment(context: PaymentProcessorContext): Promise<PaymentProcessorError | void> {
return Promise.resolve(undefined);
}

retrievePayment(paymentSessionData: Record<string, unknown>): Promise<PaymentProcessorError | PaymentProcessorSessionResponse["session_data"]> {
return Promise.resolve({ });
}

updatePayment(context: PaymentProcessorContext): Promise<PaymentProcessorError | void> {
return Promise.resolve(undefined);
}

capturePayment(paymentSessionData: Record<string, unknown>): Promise<PaymentProcessorError | PaymentProcessorSessionResponse["session_data"]> {
return Promise.resolve({ });
}

refundPayment(paymentSessionData: Record<string, unknown>): Promise<PaymentProcessorError | PaymentProcessorSessionResponse["session_data"]> {
return Promise.resolve({});
}
}

export const defaultPaymentSessionInputData = {
Expand Down

0 comments on commit f518642

Please sign in to comment.