Alex P
25b13e4467
Merge branch 'trunk' into pcp-157-blocks
2023-03-14 09:24:06 +02:00
Emili Castells Guasch
c600575d23
Do not call endpoint if not onboarded
2023-03-13 14:56:15 +01:00
Emili Castells Guasch
098ec6f057
Merge branch 'trunk' into PCP-1462-order-pay-later
2023-03-03 10:46:50 +01:00
Emili Castells
1debc92453
Merge pull request #965 from woocommerce/pcp-456-aub-choice
...
Improve cart subscriptions check and "All products for subscriptions" compatibility
2023-03-03 10:44:03 +01:00
Alex P
8c1af84204
Refactor settings check
2023-02-27 12:04:43 +02:00
Alex P
f8daa7ff2f
Remove incorrect @throws
2023-02-27 12:04:08 +02:00
Alex P
8950b9ca13
Render pay later message before buttons on order pay page
2023-02-27 12:03:32 +02:00
Alex P
d35fdea592
Fix pay later enabling
...
It should be enabled only when enabled on the Pay Later tab, also we disabling we can use `paylater` instead of `credit`
2023-02-27 12:02:47 +02:00
Alex P
68b13a480b
Fix script loading logic in pay-now check
2023-02-27 11:33:22 +02:00
Alex P
38a8473e57
Remove redundant method
...
pay later is not available for mini-cart, and even if we add it we should not implement this check with such confusing naming (location and context)
2023-02-26 15:03:41 +02:00
Alex P
8640d3031d
Fix pay later on order pay page
2023-02-26 15:00:42 +02:00
Emili Castells Guasch
0a3afeac99
Fix merge conflict
2023-02-23 17:48:13 +01:00
Emili Castells Guasch
47b25a38a2
Merge branch 'trunk' into PCP-1436-error-messages
2023-02-23 11:56:27 +01:00
Emili Castells
de651b3ae8
Merge pull request #1185 from woocommerce/PCP-235-status-capture
...
Allow to capture automatically on status change
2023-02-23 11:53:29 +01:00
Emili Castells
018ef8603a
Merge pull request #1186 from woocommerce/PCP-1447-fix-preview-country
...
Do not send buyer-country for previews in live mode to avoid error
2023-02-23 11:52:28 +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
6ab0c84c3a
Merge pull request #1188 from popforce/patch-1
...
Add filter to fallback tracking_data['carrier']
2023-02-21 14:43:32 +01:00
Alex P
3ca9b444fe
Redirect to connection tab after manual credentials input
2023-02-21 10:38:11 +02: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
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
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
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
Alex P
c5af5df056
Merge branch 'trunk' into PCP-1003-adv-validation
2023-02-10 11:55:44 +02:00