Commit graph

64 commits

Author SHA1 Message Date
Emili Castells
8b9b664a32
Merge pull request #2910 from woocommerce/PCP-4009-pay-pal-subscription-creation-fails-for-multi-year-plans
PayPal Subscription Creation Fails for Multi-Year Plans
2025-02-12 14:48:35 +01:00
Philipp Stracker
90d2c77a5a
🚚 Extract Environment class to gateway module 2025-02-03 13:34:30 +01:00
Daniel Hüsken
6ca7d2d48c
fix zero price detection 2025-01-06 12:02:11 +01:00
Daniel Hüsken
031b50264c
Validate subscription price in PayPal Subscriptions logic. Check Interval on page load 2025-01-06 11:44:27 +01:00
Emili Castells Guasch
c6466d12a7 Update subscription status to on-hold before creating renewal order 2025-01-02 11:52:28 +01:00
Daniel Hüsken
f068ac1b3c
fix psalm 2024-12-20 11:56:51 +01:00
Daniel Hüsken
a431b52094
Improved working on new post 2024-12-20 11:37:29 +01:00
Daniel Hüsken
af08ad5fce
Fix js problem 2024-12-20 10:06:34 +01:00
Daniel Hüsken
0131911f11
moved js logic to function 2024-12-18 08:44:46 +01:00
Daniel Hüsken
5e85389830
Fix PHPCS 2024-12-18 08:18:29 +01:00
Daniel Hüsken
39f88b7346
Changed and improved logic. Checkbox will be grayed out when period interval is not allowed. 2024-12-17 16:05:36 +01:00
Daniel Hüsken
0f1750617f
add js to not allow selecting not allowed period intervals 2024-12-16 13:09:45 +01:00
Daniel Hüsken
1776df200b
add warning to log if interval is changed 2024-12-16 08:57:36 +01:00
Daniel Hüsken
915e755c76
convert to sting 2024-12-12 13:40:11 +01:00
Daniel Hüsken
a9f99213c3
add logic that prevents from not allowed periods. 2024-12-12 13:36:32 +01:00
Daniel Hüsken
4dcabc5e67
only change Modules in run that are to early for translations and use plugins_loaded again 2024-11-25 15:39:38 +01:00
Alex P.
b67265ac15
Update js deps 2024-11-04 17:15:27 +02:00
Emili Castells
5140ba97b7
Merge pull request #2710 from woocommerce/PCP-3795-fix-sold-individually
Set "Sold individually" only for subscription connected to PayPal
2024-10-23 15:30:31 +02:00
Emili Castells Guasch
8a47997570 Fix merge conflict 2024-10-22 14:29:43 +02:00
Emili Castells
ff14d98e82
Merge pull request #2612 from woocommerce/PCP-3677-pay-pal-subscriptions-api-renewal-order-not-created-in-woo-commerce
PayPal Subscriptions API renewal order not created in WooCommerce (3677)
2024-10-22 12:42:04 +02:00
Alex P
679c890bab
Fix bool/string usage 2024-10-18 11:55:41 +03:00
Alex P.
39e37f0bbb
Set "Sold individually" only for subscription connected to PayPal 2024-10-18 11:28:22 +03:00
Emili Castells
634b3707ee
Merge pull request #2667 from woocommerce/PCP-3744-fix-multicurrency
Fix multi-currency support
2024-10-03 12:40:35 +02:00
Alex P.
f85df4718a
Retrieve shop currency later to avoid early caching in service 2024-10-03 10:10:50 +03:00
Emili Castells Guasch
1508432981 Fix psalm 2024-09-23 09:40:20 +02:00
Emili Castells Guasch
aafa11ad2b Fix psalm 2024-09-23 09:38:23 +02:00
Emili Castells Guasch
c056b33b3c Use woocommerce_subscription_status_updated for all subscription status updates 2024-09-20 15:25:49 +02:00
Emili Castells Guasch
6518ae0655 Updates subscription status from subscriptions list page 2024-09-20 12:49:11 +02:00
Emili Castells Guasch
a2d02cd7f4 Extrat update subscription status logic to its own class 2024-09-20 12:15:11 +02:00
Emili Castells Guasch
2f21df65b3 Add time based logic for checking if is order is parent or for renewal 2024-09-18 14:43:41 +02:00
Emili Castells Guasch
750e5891c4 Revert latest change, will be included in its own PR 2024-09-18 12:15:32 +02:00
Emili Castells Guasch
6a52957f97 Do not return if _ppcp_enable_subscription_product not exist in the post request 2024-09-18 11:57:51 +02:00
Emili Castells Guasch
eb19f05226 Do not return if _ppcp_enable_subscription_product not exist in the post request 2024-09-18 11:52:28 +02:00
Emili Castells Guasch
80e6457502 Extract is renewal logic to method 2024-09-16 14:58:25 +02:00
Emili Castells Guasch
9bc9c03053 Extract renewal handler logic to new class 2024-09-13 15:35:13 +02:00
Philipp Stracker
2cb026604c
Merge branch 'PCP-1773-php74'
# Conflicts:
#	composer.lock
2024-09-04 15:47:37 +02:00
Alex P.
f538ea2ef2
Require PHP 7.4+ 2024-09-03 09:07:12 +03:00
Moritz Meißelbach
4d9f23e315
Merge branch 'refs/heads/trunk' into modularity-module-migration
# Conflicts:
#	composer.lock
#	modules/ppcp-axo/src/AxoModule.php
#	modules/ppcp-blocks/src/BlocksModule.php
#	modules/ppcp-compat/src/CompatModule.php
#	modules/ppcp-googlepay/src/GooglepayModule.php
#	modules/ppcp-order-tracking/src/OrderTrackingModule.php
#	modules/ppcp-wc-subscriptions/src/WcSubscriptionsModule.php
2024-08-23 14:25:36 +02:00
Emili Castells
02cc1aaad8
Merge pull request #2415 from woocommerce/PCP-3362-enable-sold-individually-option-in-paypal-vaulting
Sold individually automatically disabled after changing from PayPal subscription to PayPal vaulting and adding product more then one time to cart (3362)
2024-07-15 09:47:51 +02:00
George Burduli
bd6115855f
Add check for invalid product 2024-07-12 17:15:56 +04:00
George Burduli
636b905ef0
Fix add to cart limits of non-subscription products 2024-07-12 17:07:34 +04:00
Emili Castells Guasch
11105d913b Run eslint autofix 2024-07-12 12:58:34 +02:00
Emili Castells Guasch
0bb7165273 Ensure connect subscription is sent when saving subscription product 2024-07-09 12:30:13 +02:00
Emili Castells Guasch
67074a6c9f Ensure subscriptions mode setting exist 2024-06-20 15:07:34 +02:00
Emili Castells Guasch
1d0d4d21ad Ensure subscriptions mode setting exist 2024-06-20 15:06:35 +02:00
George Burduli
924aa18ddc
Fix psalm errors 2024-06-07 11:35:48 +04:00
George Burduli
7485a1d233
Only prevent multiple subscription products in cart if PayPal Subscriptions API is active 2024-06-07 11:32:18 +04:00
George Burduli
be95c3bb85
Fix setting 'sold individually' option 2024-05-30 15:25:18 +04:00
George Burduli
07d041fe1f
Replace update_metadata() with set_sold_individually() 2024-05-29 13:42:14 +04:00
George Burduli
cc2e121e2a
Remove whitespace 2024-05-29 11:48:41 +04:00