Commit graph

3513 commits

Author SHA1 Message Date
Emili Castells
10b3ddf411
Merge pull request #1200 from woocommerce/update/changelog-date-format
Update readme.txt changelog date format
2023-02-23 11:48:37 +01:00
Emili Castells Guasch
705050a7c3 Fix merge conflict 2023-02-23 11:42:54 +01:00
Alex P
13237fa68a
Remove type-hint to reduce third-party conflicts 2023-02-23 11:24:12 +02:00
Emili Castells Guasch
0864b723ef Fix phpcs 2023-02-22 16:42:50 +01:00
Alex P
50b7066afb
Do not call get_available_payment_gateways early
Calling it during object construction causes issues with third-party plugins when it is executed too early or in irrelevant requests (WP ajax for saving posts, ...).
Now this function call is moved into a separate class to make it more difficult to accidentally execute early or when not needed.
2023-02-22 17:25:14 +02:00
Emili Castells Guasch
378bb209b9 Check both post and get values in the request 2023-02-22 16:17:54 +01:00
Emili Castells Guasch
af553856d7 Merge branch 'trunk' into PCP-923-ppec-compatibility-layer-does-not-take-over-subscriptions 2023-02-21 15:10:09 +01:00
Emili Castells
37ec22abbb
Merge pull request #1203 from woocommerce/release/2.0.3
Release 2.0.3
2023-02-21 14:50:37 +01:00
Emili Castells Guasch
6fc890fd47 Update changelog 2023-02-21 14:44:48 +01:00
Emili Castells
6ab0c84c3a
Merge pull request #1188 from popforce/patch-1
Add filter to fallback tracking_data['carrier']
2023-02-21 14:43:32 +01:00
Emili Castells Guasch
747b3a327c Bump 2.0.3 version 2023-02-21 14:30:12 +01:00
Emili Castells
088a2d985b
Merge pull request #1201 from woocommerce/PCP-1456-wrong-redirect
Redirect to connection tab after manual credentials input
2023-02-21 12:39:23 +01:00
Alex P
3ca9b444fe
Redirect to connection tab after manual credentials input 2023-02-21 10:38:11 +02:00
Danae Millan
ac69e7e522 Remove date placeholders 2023-02-20 22:28:13 -05:00
Danae Millan
9ae909b574 Add dates to the version titles in the readme.txt changelog 2023-02-20 22:16:43 -05:00
Danae Millan
5bc23f58a2 Temp, add placeholder date to the changelog of the last release 2023-02-20 22:03:45 -05:00
Alex P
2331947921
Fix psalm warning 2023-02-20 12:16:38 +02:00
Alex P
cae2e60453
Fix filter conventions 2023-02-20 12:15:15 +02:00
emilicastells
1191da5162
Fix psalm 2023-02-16 17:04:12 +01:00
emilicastells
c85211cc43
Do not call get_available_payment_gateways on fraudnet service definition 2023-02-16 16:55:51 +01:00
emilicastells
de03ae0f3a
Revert changes as not related to the root of the problem 2023-02-16 16:09:57 +01:00
emilicastells
85bca9e19b
Check should mock ppec gateway by request params instead of get_current_screen 2023-02-15 16:15:40 +01:00
Alex P
6a0592f58b
Remove useless dcc check in cart 2023-02-15 16:52:16 +02:00
Alex P
5dd0931c0f
Hide cart buttons when intent changed 2023-02-15 16:50:34 +02:00
Alex P
4ae82b704a
Make SmartButton more reusable 2023-02-15 16:03:49 +02:00
Alex P
70c48762fa
Merge branch 'trunk' into pcp-157-blocks 2023-02-15 11:38:31 +02:00
Alex P
ea3e5bbeb6
Add express checkout block (wip) 2023-02-15 10:52:25 +02:00
Alex P
2b244133e1
Make error message list more consistent with WC
Now it should match the behavior of WC checkout.js more closely and avoid duplicated message lists (because we were always creating our own list ignoring WC).
Also removed the persist parameter. It does not seem to be used for anything useful, and we only set it inconsistently for some of the errors (remained from some old code).
I guess the idea could be to prevent genericError() from clearing previously added errors. Such if you call clear(), added some messages, but then some generic handler also triggered and called genericError(). If we really need such behavior, then we can simply check whether the list is empty. But it's probably not a good idea anyway because it can cause confusion if genericError() was a result of some other operation unrelated to the previous errors (e.g. tried another payment gateway).
2023-02-14 17:12:08 +02:00
popforce
c5f91a9024
Add filter to fallback tracking_data['carrier']
PayPal Payments always defaults to DHL_DEUTSCHE_POST. 
As Germanized offers to create your own carriers we should be able to filter it, thus being able to return the correct  carrier for PayPal, which is e.g. DPD_DE, GLS_DE, OTHER
2023-02-14 13:12:01 +01:00
Alex P
3439f67ec9
Do not send buyer-country for previews in live mode to avoid error 2023-02-14 11:25:23 +02:00
Alex P
7c43d91288
Allow to capture automatically on status change 2023-02-14 10:30:59 +02:00
Alex P
b98bed9147
Merge branch 'trunk' into pcp-456-aub-choice 2023-02-13 17:50:28 +02:00
Emili Castells
ec04c02b3d
Merge pull request #1170 from woocommerce/PCP-1430-validate-free-trial
Validate before free trial
2023-02-13 15:27:14 +01:00
Emili Castells
e5c66a65a1
Merge branch 'trunk' into PCP-1430-validate-free-trial 2023-02-13 15:20:52 +01:00
Emili Castells
a3dfc3c01e
Merge pull request #1169 from woocommerce/PCP-1421-label
Mention PUI only for German shops and add line breaks
2023-02-13 15:17:59 +01:00
Emili Castells
36281f4a8b
Merge pull request #1172 from woocommerce/PCP-1438-get-cart-warning
Use wp_loaded for fraudnet loading to avoid warnings
2023-02-13 15:15:53 +01:00
Emili Castells
4ba1c52bea
Merge pull request #1177 from woocommerce/PCP-1429-device-data-not-available-error-message-is-showing-for-pay-upon-invoice
`DEVICE_DATA_NOT_AVAILABLE` error message when FraudNet is enabled (1429)
2023-02-13 13:04:33 +01:00
emilicastells
568b809834
Move context logic to trait 2023-02-13 11:01:51 +01:00
emilicastells
1f395701ed
Merge branch 'trunk' into PCP-1429-device-data-not-available-error-message-is-showing-for-pay-upon-invoice 2023-02-13 09:48:49 +01:00
Emili Castells
3a21b2932b
Merge pull request #1131 from woocommerce/pcp-990-user-valdation
Validate new user creation
2023-02-10 15:21:21 +01:00
Alex P
c3a874c96f
Merge branch 'trunk' into pcp-990-user-valdation 2023-02-10 15:22:49 +02:00
Emili Castells
040e6d9d99
Merge pull request #1146 from woocommerce/pcp-1391-ditch-filter
Add filter for controlling the ditching of items/breakdown
2023-02-10 12:36:33 +01:00
Emili Castells
83bb9430bf
Merge pull request #1147 from woocommerce/pcp-1392-patch-data-filter
Add patch order data filter
2023-02-10 12:35:50 +01:00
Emili Castells
dd80f8fcfe
Merge pull request #1153 from woocommerce/PCP-1418-fees-display-filter
Add filter for disabling fees on wc order admin pages
2023-02-10 12:34:58 +01:00
Emili Castells
31b05842fc
Merge pull request #1135 from woocommerce/pcp-956-free-trial-form-save
Save checkout form before free trial redirect
2023-02-10 12:32:09 +01:00
Emili Castells
4aab613925
Merge pull request #1157 from woocommerce/PCP-1138-recaptcha-validation
Set $_REQUEST before validation
2023-02-10 12:26:50 +01:00
Emili Castells
9518a5ca86
Merge pull request #1160 from woocommerce/PCP-1003-adv-validation
Improve compatibility with Advanced Shipping Validation
2023-02-10 12:26:14 +01:00
Alex P
c5af5df056
Merge branch 'trunk' into PCP-1003-adv-validation 2023-02-10 11:55:44 +02:00
emilicastells
88d85ca87d
Get button locations from smart_button_locations setting 2023-02-09 16:35:53 +01:00
Alex P
61dafb83d7
Use wp_loaded for fraudnet loading to avoid warnings
It needs wcgateway.enabled-ppcp-gateways which calls WC()->payment_gateways->get_available_payment_gateways(), and the hooks inside it can be used by other plugins resulting in warnings about calling functions like get_cart too early
One way to fix it is simply to use the wp_loaded hook instead of init, I think it supposed to be a more correct choice if interaction with other plugins (WC) is needed, because it is fired when "WP, all plugins, and the theme are fully loaded and instantiated"
2023-02-08 18:00:23 +02:00