Skip to content

Commit

Permalink
Rename CardProcessorOptions to PaymentProcessorOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
sirbrillig committed Dec 16, 2020
1 parent 8f4aec1 commit 3a54360
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ import type { PaymentProcessorResponse } from '@automattic/composite-checkout';
*/
import { createTransactionEndpointRequestPayloadFromLineItems } from './translate-cart';
import { wpcomTransaction } from '../payment-method-helpers';
import type { CardProcessorOptions } from '../types/payment-processors';
import type { PaymentProcessorOptions } from '../types/payment-processors';
import type { TransactionRequestWithLineItems } from '../types/transaction-endpoint';

const debug = debugFactory( 'calypso:composite-checkout:payment-method-helpers' );

export default async function existingCardProcessor(
transactionData: unknown,
dataForProcessor: CardProcessorOptions
dataForProcessor: PaymentProcessorOptions
): Promise< PaymentProcessorResponse > {
if ( ! isValidTransactionData( transactionData ) ) {
throw new Error( 'Required purchase data is missing' );
Expand Down Expand Up @@ -49,7 +49,7 @@ export default async function existingCardProcessor(

async function submitExistingCardPayment(
transactionData: ExistingCardTransactionRequest,
transactionOptions: CardProcessorOptions
transactionOptions: PaymentProcessorOptions
) {
debug( 'formatting existing card transaction', transactionData );
const formattedTransactionData = createTransactionEndpointRequestPayloadFromLineItems( {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type { StripeConfiguration } from '@automattic/calypso-stripe';
*/
import type { ReactStandardAction } from '../types/analytics';

export interface CardProcessorOptions {
export interface PaymentProcessorOptions {
includeDomainDetails: boolean;
includeGSuiteDetails: boolean;
createUserAndSiteBeforeTransaction: boolean;
Expand Down

0 comments on commit 3a54360

Please sign in to comment.