-
Notifications
You must be signed in to change notification settings - Fork 72
refactor: add Apple Pay and Google Pay definitions #11144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
5161305
6f26edd
000dac3
d4f8917
1416d53
0044722
9f9f9e5
911f789
1e727d7
aeb47de
f18b30f
8d0746e
2e3a8dd
91afd58
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| Significance: patch | ||
| Type: dev | ||
|
|
||
| refactor: add Apple Pay and Google Pay payment definitions |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -77,10 +77,6 @@ export const transformStripePaymentMethodForStoreApi = ( | |
| key: 'payment_method', | ||
| value: 'card', | ||
| }, | ||
| { | ||
| key: 'payment_request_type', | ||
| value: paymentData.expressPaymentType, | ||
| }, | ||
|
Comment on lines
-80
to
-83
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Deprecating the |
||
| { | ||
| key: 'wcpay-fraud-prevention-token', | ||
| value: window.wcpayFraudPreventionToken ?? '', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,7 +71,6 @@ export const normalizeOrderData = ( event, paymentMethodId ) => { | |
| ship_to_different_address: 1, | ||
| terms: 1, | ||
| 'wcpay-payment-method': paymentMethodId, | ||
| payment_request_type: event?.expressPaymentType, | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Deprecating the |
||
| express_payment_type: event?.expressPaymentType, | ||
| 'wcpay-fraud-prevention-token': fraudPreventionTokenValue, | ||
| }; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,8 +14,6 @@ import MasterCardAsset from 'assets/images/cards/mastercard.svg?asset'; | |
| import AmexAsset from 'assets/images/cards/amex.svg?asset'; | ||
| import WooAsset from 'assets/images/payment-methods/woo.svg?asset'; | ||
| import WooAssetShort from 'assets/images/payment-methods/woo-short.svg?asset'; | ||
| import ApplePayAsset from 'assets/images/cards/apple-pay.svg?asset'; | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The asset is still used in the payment method definition. |
||
| import GooglePayAsset from 'assets/images/cards/google-pay.svg?asset'; | ||
| import DinersClubAsset from 'assets/images/cards/diners.svg?asset'; | ||
| import DiscoverAsset from 'assets/images/cards/discover.svg?asset'; | ||
| import CBAsset from 'assets/images/cards/cb.svg?asset'; | ||
|
|
@@ -49,10 +47,6 @@ export const AmericanExpressIcon = iconComponent( | |
| AmexAsset, | ||
| __( 'American Express', 'woocommerce-payments' ) | ||
| ); | ||
| export const ApplePayIcon = iconComponent( | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not used anywhere anymore |
||
| ApplePayAsset, | ||
| __( 'Apple Pay', 'woocommerce-payments' ) | ||
| ); | ||
| export const CBIcon = iconComponent( | ||
| CBAsset, | ||
| __( 'Cartes Bancaires', 'woocommerce-payments' ) | ||
|
|
@@ -65,10 +59,6 @@ export const DiscoverIcon = iconComponent( | |
| DiscoverAsset, | ||
| __( 'Discover', 'woocommerce-payments' ) | ||
| ); | ||
| export const GooglePayIcon = iconComponent( | ||
| GooglePayAsset, | ||
| __( 'Google Pay', 'woocommerce-payments' ) | ||
| ); | ||
| export const JCBIcon = iconComponent( | ||
| JCBAsset, | ||
| __( 'JCB', 'woocommerce-payments' ) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shows the wallet icon next to the payment
Unfortunately, it's not possible to show the wallet icon on the transactions list, because it's missing the wallet information.