fix(payment): add account holder methods to the manual provider (#12751)

This commit is contained in:
Frane Polić
2025-06-17 09:10:05 +02:00
committed by GitHub
parent 4e26e1ab3e
commit 7a8f639b38
2 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/payment": patch
---
fix(payment): add account holder methods to the manual provider

View File

@@ -7,6 +7,10 @@ import {
CancelPaymentOutput,
CapturePaymentInput,
CapturePaymentOutput,
CreateAccountHolderInput,
CreateAccountHolderOutput,
DeleteAccountHolderInput,
DeleteAccountHolderOutput,
DeletePaymentInput,
DeletePaymentOutput,
GetPaymentStatusInput,
@@ -77,6 +81,18 @@ export class SystemProviderService extends AbstractPaymentProvider {
return { data: {} }
}
async createAccountHolder(
input: CreateAccountHolderInput
): Promise<CreateAccountHolderOutput> {
return { id: input.context.customer.id }
}
async deleteAccountHolder(
input: DeleteAccountHolderInput
): Promise<DeleteAccountHolderOutput> {
return { data: {} }
}
async refundPayment(input: RefundPaymentInput): Promise<RefundPaymentOutput> {
return { data: {} }
}