Skip to content

Commit

Permalink
feat(payment): PAYPAL-3416 updated paypal commerce mapper gateway wit…
Browse files Browse the repository at this point in the history
…h paypalcommerceacceleratedcheckout methodId
  • Loading branch information
serhii-tkachenko committed Jan 10, 2024
1 parent 0f17761 commit 104571a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/payment/payment-method-ids.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const BRAINTREE_ACH = 'braintreeach';
export const BRAINTREE_ACCELERATED_CHECKOUT = 'braintreeacceleratedcheckout';

export const PAYPAL_COMMERCE = 'paypalcommerce';
export const PAYPAL_COMMERCE_ACCELERATED_CHECKOUT = 'paypalcommerceacceleratedcheckout';
export const PAYPAL_COMMERCE_ALTERNATIVE_METHODS = 'paypalcommercealternativemethods';
export const PAYPAL_COMMERCE_CREDIT = 'paypalcommercecredit';
export const PAYPAL_COMMERCE_CREDIT_CARDS = 'paypalcommercecreditcards';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
PAYPAL_COMMERCE,
PAYPAL_COMMERCE_CREDIT,
PAYPAL_COMMERCE_CREDIT_CARDS,
PAYPAL_COMMERCE_ACCELERATED_CHECKOUT,
PAYPAL_COMMERCE_ALTERNATIVE_METHODS,
PAYPAL_COMMERCE_VENMO,
} from '../payment-method-ids';
Expand Down Expand Up @@ -42,6 +43,7 @@ function isPaypalCommercePaymentMethod(id) {
switch (id) {
case PAYPAL_COMMERCE_CREDIT:
case PAYPAL_COMMERCE_CREDIT_CARDS:
case PAYPAL_COMMERCE_ACCELERATED_CHECKOUT:
case PAYPAL_COMMERCE_ALTERNATIVE_METHODS:
case PAYPAL_COMMERCE_VENMO:
return true;
Expand Down

0 comments on commit 104571a

Please sign in to comment.