Commit graph

548 commits

Author SHA1 Message Date
Emili Castells Guasch
bdc69a6fc6 Fix return subscription plan id 2023-03-02 09:11:17 +01:00
Emili Castells Guasch
c1d7d30f04 Fix merge conflicts 2023-02-28 11:07:03 +01: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
Emili Castells
e5c66a65a1
Merge branch 'trunk' into PCP-1430-validate-free-trial 2023-02-13 15:20:52 +01:00
emilicastells
568b809834
Move context logic to trait 2023-02-13 11:01:51 +01:00
Alex P
c3a874c96f
Merge branch 'trunk' into pcp-990-user-valdation 2023-02-10 15:22:49 +02: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
Alex P
09b6b411db
Call WC validation on free trial click 2023-02-07 15:29:53 +02:00
emilicastells
74b13e6372
Ensure subscriptions intent added only when subscription product in cart 2023-02-06 12:16:16 +01:00
emilicastells
a8616603aa
Add new vaulting setting for advanced credit card 2023-02-03 17:07:51 +01:00
Alex P
838978fcf6
Retrieve validation errors from notices 2023-02-03 10:36:48 +02:00
Alex P
d6bd403b5a
Call calculate_shipping before validation 2023-02-03 10:35:38 +02:00
Alex P
b10f1a693a
Set $_REQUEST before validation 2023-02-02 15:26:28 +02:00
emilicastells
ee425588bf
Add subscriptions mode selector 2023-02-01 16:30:39 +01:00
Alex P
6fc12a55a9
Make is_checkout()=true during validation to improve compatibility 2023-01-30 17:33:24 +02:00
Alex P
654d6d6da8
Validate new user creation 2023-01-26 12:34:07 +02:00
Alex P
79f2c9a1fa
Save checkout form before free trial redirect 2023-01-25 09:42:31 +02:00
emilicastells
72eb713fd4
Add logic to enable/disable PayPal subscriptions feature 2023-01-16 12:37:16 +01:00
emilicastells
71c1937808
Remove temporary setting for debug 2023-01-10 11:39:09 +01:00
emilicastells
6b5ed3fc80
Get subscription plan id from WC product 2023-01-10 11:32:44 +01:00
emilicastells
7774a5e8b0
Integrate PayPal Subscriptions (WIP) 2023-01-05 14:53:23 +01:00
emilicastells
dd3918b146
Extract vault logic into service 2023-01-04 12:40:24 +01:00
emilicastells
8b58eb0566
Extract intent and context logic into services 2023-01-04 12:13:26 +01:00
emilicastells
35e3e97f88
Merge branch 'PCP-591-save-and-display-vaulted-payment-methods-in-woo-commerce-native-endpoint' into PCP-991-detach-vaulting-from-wc-subscriptions-support 2022-12-23 12:30:38 +01:00
Narek Zakarian
eb080c9275
Merge branch 'trunk' into PCP-1083-update-standard-payments-tab-settings 2022-12-20 19:37:51 +04:00
emilicastells
7022924d7e
Merge branch 'trunk' into PCP-991-detach-vaulting-from-wc-subscriptions-support 2022-12-14 14:36:07 +01:00
Alex P
80428f1eb1
Execute WC validation only for buttons in checkout 2022-12-12 09:18:37 +02:00
Narek Zakarian
3398e46329
Allow general/default styling for smart buttons 2022-12-05 18:12:15 +04:00
Narek Zakarian
da07c3b5fa
Refactor smart button with new settings 2022-12-05 16:53:30 +04:00
Emili Castells
6a3f96a1e8
Merge pull request #1047 from woocommerce/pcp-1016-address-error
Fix shipping address validation
2022-12-01 11:58:09 +01:00
Emili Castells
67559a0492
Merge pull request #1035 from woocommerce/pcp-1036-fix-dcc-messages
Fix DCC error messages handling
2022-11-30 16:32:26 +01:00
Alex P
428d4f700b
Fix shipping address validation 2022-11-30 12:44:35 +02:00
Alex P
1da410a6da
Fix checkout error messages checks 2022-11-29 10:23:47 +02:00
Alex P
e9d83449d4
Fix DCC error messages handling 2022-11-29 10:02:10 +02:00
Alex P
308ce11674
Set $_POST before validation 2022-11-23 10:34:19 +02:00
emilicastells
2b3b4dcce2
Detach vaulting from subscriptions (WIP) 2022-11-22 13:35:28 +01:00
Emili Castells
93d33e5cad
Merge pull request #1004 from woocommerce/pcp-972-highlight-empty-fields
Trigger WC JS validation on button click to highlight empty fields
2022-11-22 11:31:21 +01:00
Alex P
78e076f0cb
Trigger WC JS validation on button click to highlight empty fields 2022-11-18 10:17:59 +02:00
Alex P
0bc23975a8
Use MutationObserver to show/hide variable product buttons
The price may get loaded later
2022-11-17 16:55:35 +02:00
Alex P
a0f6a8b700
Fix variable product price retrieval 2022-11-17 16:55:35 +02:00
Alex P
fca1f50878
Improve zero price check (handle NaN, null) 2022-11-17 16:55:35 +02:00
Alex P
38051eb617
Use PayPal button color for Pay Later when rendering separately 2022-11-16 09:23:08 +02:00
Emili Castells
e67b4225d3
Merge pull request #962 from woocommerce/PCP-915-create-pay-later-tab
Create the pay later tab
2022-11-15 11:53:37 +01:00
Narek Zakarian
629292c85a Merge remote-tracking branch 'origin/trunk' into PCP-915-create-pay-later-tab
# Conflicts:
#	modules/ppcp-wc-gateway/services.php
2022-11-15 14:40:23 +04:00
Alex P
d8f972343d
Merge branch 'trunk' into pcp-918-php-72 2022-11-15 12:36:20 +02:00
Narek Zakarian
5dca23e7e1 Fix the admin client ID for US 2022-11-15 14:35:02 +04:00
Emili Castells
967e40633e
Merge pull request #981 from woocommerce/pcp-966-prevent-enter
Prevent Enter key submit for our non-standard button gateways
2022-11-15 10:54:50 +01:00
Alex P
edea76c9e4 Prevent Enter key submit for our non-standard button gateways
Otherwise pressing Enter triggers WC order process without e.g. completing payment via paypal popup, and results in failure with confusing error message.
2022-11-14 10:17:26 +02:00