@@ -3,7 +3,6 @@ import type { QueryResult } from '@apollo/client';
33import { graphql } from '@apollo/client/react/hoc' ;
44import type { PaymentIntentResult } from '@stripe/stripe-js' ;
55import { get , uniqBy } from 'lodash' ;
6- import { Clock } from 'lucide-react' ;
76import type { NextRouter } from 'next/router' ;
87import { withRouter } from 'next/router' ;
98import type { IntlShape } from 'react-intl' ;
@@ -40,9 +39,9 @@ import { withUser } from '../../components/UserProvider';
4039
4140import { isValidExternalRedirect } from '../../pages/external-redirect' ;
4241import Avatar from '../Avatar' ;
43- import { CustomPaymentMethodInstructions } from '../custom-payment-provider/CustomPaymentMethodInstructions' ;
44- import { getCustomPaymentProviderIconComponent } from '../custom-payment-provider/CustomPaymentProviderIcon' ;
4542import Link from '../Link' ;
43+ import { CustomPaymentMethodInstructions } from '../manual-payment-provider/CustomPaymentMethodInstructions' ;
44+ import { getManualPaymentProviderIconComponent } from '../manual-payment-provider/ManualPaymentProviderIcon' ;
4645import { Survey , SURVEY_KEY } from '../Survey' ;
4746import { Badge } from '../ui/Badge' ;
4847import { Button } from '../ui/Button' ;
@@ -317,7 +316,7 @@ class ContributionFlowSuccess extends React.Component<
317316 const platformTipAmount = order . platformTipAmount . valueInCents ;
318317 const totalAmount = amount + platformTipAmount ;
319318 const currency = order . amount . currency ;
320- const IconComponent = manualPaymentProvider && getCustomPaymentProviderIconComponent ( manualPaymentProvider ) ;
319+ const IconComponent = manualPaymentProvider && getManualPaymentProviderIconComponent ( manualPaymentProvider ) ;
321320
322321 return (
323322 < div
@@ -362,6 +361,7 @@ class ContributionFlowSuccess extends React.Component<
362361 amount : { valueInCents : totalAmount , currency } ,
363362 collectiveSlug : get ( data , 'order.toAccount.name' , '' ) ,
364363 OrderId : get ( data , 'order.legacyId' , 0 ) ,
364+ accountDetails : manualPaymentProvider . accountDetails ,
365365 } }
366366 />
367367 </ div >
@@ -391,7 +391,7 @@ class ContributionFlowSuccess extends React.Component<
391391 const { order } = data ;
392392 const shareURL = `${ getWebsiteUrl ( ) } /${ collective . slug } ` ;
393393 const isProcessing = order ?. status === ORDER_STATUS . PROCESSING ;
394- const isPendingBankTransfer = order ?. status === ORDER_STATUS . PENDING && ! order . paymentMethod ;
394+ const isPendingManualContribution = order ?. status === ORDER_STATUS . PENDING && ! order . paymentMethod ;
395395
396396 const loading = data . loading || ! this . state ?. loaded ;
397397
@@ -406,7 +406,7 @@ class ContributionFlowSuccess extends React.Component<
406406 }
407407
408408 // Show dedicated pending layout for bank transfer contributions
409- if ( ! loading && isPendingBankTransfer ) {
409+ if ( ! loading && isPendingManualContribution ) {
410410 return this . renderPendingView ( ) ;
411411 }
412412
0 commit comments