Skip to content

Commit

Permalink
fix(payments): PAYPAL-1713 removed PAYPAL_ACH
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-nick committed Apr 24, 2023
1 parent 8f3bf21 commit ced1a3e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion src/payment/payment-method-types.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export const CREDIT_CARD = 'credit-card';
export const PAYPAL_ACH = 'paypal-ach';
export const MULTI_OPTION = 'multi-option';
export const PPSDK_CREDIT_CARD = 'card';
12 changes: 1 addition & 11 deletions src/payment/v1/payment-mappers/payment-mapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import objectAssign from 'object-assign';
import { omitNil, toNumber } from '../../../common/utils';

import PaymentMethodIdMapper from '../../payment-method-mappers/payment-method-id-mapper';
import { PAYPAL_ACH } from '../../payment-method-types';

export default class PaymentMapper {
/**
Expand Down Expand Up @@ -52,7 +51,7 @@ export default class PaymentMapper {
const { method } = paymentMethod;

if (method) {
objectAssign(payload, { method: this.mapToMethod(method) });
objectAssign(payload, { method });
}

const nonce = payment.nonce || paymentMethod.nonce;
Expand Down Expand Up @@ -88,15 +87,6 @@ export default class PaymentMapper {
return omitNil(payload);
}

/**
* @private
* @param {method} method
* @return {string}
*/
mapToMethod(method) {
return method === PAYPAL_ACH ? 'ach' : method;
}

/**
* @private
* @param {PaymentRequestData} data
Expand Down

0 comments on commit ced1a3e

Please sign in to comment.