Skip to content

Commit

Permalink
feat(payment): INT-1107 Checkout from Cart Page & Quick Cart using Go…
Browse files Browse the repository at this point in the history
…ogle Pay on Auth.net
  • Loading branch information
AlanMunozN committed Mar 5, 2020
1 parent 9ce9ac9 commit fe32763
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/customer/CheckoutButtonList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const SUPPORTED_METHODS: string[] = [
'braintreevisacheckout',
'chasepay',
'masterpass',
'googlepayauthorizenet',
'googlepaybraintree',
'googlepaystripe',
];
Expand Down
4 changes: 4 additions & 0 deletions src/app/payment/paymentMethod/GooglePayPaymentMethod.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ const GooglePayPaymentMethod: FunctionComponent<GooglePayPaymentMethodProps> = (
}) => {
const initializeGooglePayPayment = useCallback(options => initializePayment({
...options,
googlepayauthorizenet: {
walletButton: 'walletButton',
onError: onUnhandledError,
},
googlepaybraintree: {
walletButton: 'walletButton',
onError: onUnhandledError,
Expand Down
3 changes: 2 additions & 1 deletion src/app/payment/paymentMethod/PaymentMethod.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ const PaymentMethodComponent: FunctionComponent<PaymentMethodProps & WithCheckou
return <VisaCheckoutPaymentMethod { ...props } />;
}

if (method.id === PaymentMethodId.BraintreeGooglePay ||
if (method.id === PaymentMethodId.AuthorizeNetGooglePay ||
method.id === PaymentMethodId.BraintreeGooglePay ||
method.id === PaymentMethodId.StripeGooglePay) {
return <GooglePayPaymentMethod { ...props } />;
}
Expand Down
1 change: 1 addition & 0 deletions src/app/payment/paymentMethod/PaymentMethodId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ enum PaymentMethodId {
Barclaycard = 'barclaycard',
BlueSnapV2 = 'bluesnapv2',
Braintree = 'braintree',
AuthorizeNetGooglePay = 'googlepayauthorizenet',
BraintreeGooglePay = 'googlepaybraintree',
BraintreeVisaCheckout = 'braintreevisacheckout',
CCAvenueMars = 'ccavenuemars',
Expand Down

0 comments on commit fe32763

Please sign in to comment.