Commit graph

135 commits

Author SHA1 Message Date
Emili Castells Guasch
01ab5d6003 Add subscriptions api logic to Single product (WIP) 2023-03-20 11:58:34 +01:00
Emili Castells Guasch
baee53e90f Fix merge conflicts 2023-03-17 09:20:51 +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 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
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
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
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
09b6b411db
Call WC validation on free trial click 2023-02-07 15:29:53 +02:00
emilicastells
a8616603aa
Add new vaulting setting for advanced credit card 2023-02-03 17:07:51 +01:00
emilicastells
ee425588bf
Add subscriptions mode selector 2023-02-01 16:30:39 +01: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
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
emilicastells
2b3b4dcce2
Detach vaulting from subscriptions (WIP) 2022-11-22 13:35:28 +01:00
Narek Zakarian
e189325766 Merge remote-tracking branch 'origin/trunk' into PCP-915-create-pay-later-tab
# Conflicts:
#	modules/ppcp-button/services.php
2022-11-09 19:16:59 +04:00
Narek Zakarian
ac420a6d7e Fix Pay Later button admin preview 2022-11-09 17:58:25 +04:00
Narek Zakarian
54596fc108 Remove unnecessary throw tag from docblock 2022-11-04 12:42:50 +04:00
Narek Zakarian
cc1fb62a6f Add button and message previews 2022-11-02 17:34:53 +04:00
Narek Zakarian
3e82fd9996 Merge branch 'trunk' into PCP-915-create-pay-later-tab
# Conflicts:
#	modules/ppcp-wc-gateway/services.php
2022-10-31 16:07:17 +04:00
Narek Zakarian
832f7a41cd Refactor Pay Later to read from new tab setting on frontend 2022-10-31 15:59:17 +04:00
Danae Millan
5a5933ce91 Fix button positioning for products with one page checkout enabled 2022-10-24 12:26:26 +03:00
Alex P
4ca9639fb1 Add CSS file for non-DCC rules 2022-10-20 13:13:42 +03:00
Alex P
3b33ffe903 Fix style merging 2022-08-09 09:44:26 +03:00
Alex P
65b435135b Revert removal of gateway status check
Looks like it was accidentally removed after #704 merge conflict.
Without it we always render the hidden area for separate card gateway, so the check in JS fails and we always render all standard buttons separately in checkout, which may result in wrong style and other issues.
2022-08-05 17:14:09 +03:00
Alex Pantechovskis
36874966b1
Merge pull request #704 from woocommerce/PCP-677-smart-button-not-visible-on-single-product-when-subscription-in-cart
Fix button_renderer logic & the behavior for single products
2022-07-29 17:29:42 +03:00
Alex Pantechovskis
061ca9e7fd
Merge pull request #752 from woocommerce/pcp-831-fix-free-trial-card-button
Do not remove card funding source for free trials if card button enabled
2022-07-28 17:24:36 +03:00
Narek Zakarian
a1454dbfd7 Fix the script loading check. 2022-07-28 15:51:00 +04:00
Narek Zakarian
de21866712 Fix the script loading check. 2022-07-28 15:05:35 +04:00
Alex P
615e96c409 Do not remove card funding source for free trials if card button enabled 2022-07-27 16:26:27 +03:00
Narek Zakarian
65caa42872 Fix PHPCS problems 2022-07-26 19:11:07 +04:00
Narek Zakarian
35849315c4 Merge 2022-07-26 19:04:58 +04:00
Narek Zakarian
31b5ca90e8 Merge remote-tracking branch 'origin/trunk' into PCP-677-smart-button-not-visible-on-single-product-when-subscription-in-cart 2022-07-26 18:22:41 +04:00
Alex P
e55e2d9c81 Merge branch 'trunk' into pcp-697-separate-gateway 2022-07-26 15:28:27 +03:00
Alex P
8212605926 Make js validation error message like WC message 2022-07-22 11:48:53 +03:00
Alex P
88838ce5ca Add fields to the basic js validation error message 2022-07-21 10:13:59 +03:00
Alex P
0c17c6b1de Allow to choose one of 3 card billing data handling modes
also handle it in one place, no need to mess with payer parsing and JS
2022-07-20 17:28:55 +03:00
Alex P
429260ca34 Do not disable card funding source if card gateway enabled 2022-07-19 11:14:53 +03:00