Skip to content

Commit 7a8f639

Browse files
authored
fix(payment): add account holder methods to the manual provider (medusajs#12751)
1 parent 4e26e1a commit 7a8f639

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.changeset/stale-forks-cover.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@medusajs/payment": patch
3+
---
4+
5+
fix(payment): add account holder methods to the manual provider

packages/modules/payment/src/providers/system.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ import {
77
CancelPaymentOutput,
88
CapturePaymentInput,
99
CapturePaymentOutput,
10+
CreateAccountHolderInput,
11+
CreateAccountHolderOutput,
12+
DeleteAccountHolderInput,
13+
DeleteAccountHolderOutput,
1014
DeletePaymentInput,
1115
DeletePaymentOutput,
1216
GetPaymentStatusInput,
@@ -77,6 +81,18 @@ export class SystemProviderService extends AbstractPaymentProvider {
7781
return { data: {} }
7882
}
7983

84+
async createAccountHolder(
85+
input: CreateAccountHolderInput
86+
): Promise<CreateAccountHolderOutput> {
87+
return { id: input.context.customer.id }
88+
}
89+
90+
async deleteAccountHolder(
91+
input: DeleteAccountHolderInput
92+
): Promise<DeleteAccountHolderOutput> {
93+
return { data: {} }
94+
}
95+
8096
async refundPayment(input: RefundPaymentInput): Promise<RefundPaymentOutput> {
8197
return { data: {} }
8298
}

0 commit comments

Comments
 (0)