File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
packages/modules/payment/src/providers Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @medusajs/payment " : patch
3+ ---
4+
5+ fix(payment): add account holder methods to the manual provider
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments