File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
server/graphql/v1/mutations Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -433,8 +433,9 @@ export async function createOrder(order, req) {
433433
434434 // Default status, will get updated after the order is processed
435435 let orderStatus = status . NEW ;
436+ const isManualBankTransfer = get ( order , 'paymentMethod.type' ) === 'manual' ;
436437
437- if ( get ( order , 'paymentMethod.type' ) === 'manual' ) {
438+ if ( isManualBankTransfer ) {
438439 orderStatus = status . PENDING ;
439440 }
440441
@@ -476,7 +477,8 @@ export async function createOrder(order, req) {
476477 isBalanceTransfer : order . isBalanceTransfer ,
477478 fromAccountInfo : order . fromAccountInfo ,
478479 paymentIntent : order . paymentMethod ?. paymentIntentId ? { id : order . paymentMethod . paymentIntentId } : undefined ,
479- isManualContribution : orderStatus === status . PENDING ,
480+ isManualContribution : isManualBankTransfer ,
481+ ...( isManualBankTransfer ? { paymentMethod : 'BANK_TRANSFER' } : { } ) ,
480482 } ,
481483 status : orderStatus ,
482484 } ;
You can’t perform that action at this time.
0 commit comments