Commit graph

69 commits

Author SHA1 Message Date
dinamiko
6c01bf43b8 Merge branch 'trunk' into PCP-898-clarify-3-d-secure-v-2-support-for-vaulted-payment-methods 2022-10-11 12:25:37 +02:00
Alex P
153fc09a09 Handle virtual-only auto-capture the same as normal capture
Do not duplicate code and make it call payment_complete to handle the statuses properly.
2022-09-28 11:46:47 +03:00
dinamiko
ca9fb3e9fa Use transaction id from parent order on first renewal 2022-09-13 17:25:25 +02:00
dinamiko
d3b319ab11 Consolidate conditional 2022-09-13 16:15:58 +02:00
dinamiko
3b639233e3 fix psalm 2022-09-13 15:53:05 +02:00
dinamiko
29c8c04dc9 Add sca payment indicator for credit card renewals 2022-09-13 15:41:46 +02:00
Alex Pantechovskis
5a1c65d3e9
Merge pull request #708 from woocommerce/PCP-581-capture-virtual-only-orders-problem-for-subscriptions
Capture virtual renewal orders functionality for subscription products
2022-07-26 16:22:00 +03:00
Alex P
e73ebbadb6 Fix phpcs warnings 2022-07-11 09:19:27 +03:00
Narek Zakarian
1336180fd9 fix PHPcs problems 2022-07-08 19:52:22 +04:00
Narek Zakarian
642398d682 Merge remote-tracking branch 'origin/trunk' into PCP-581-capture-virtual-only-orders-problem-for-subscriptions
# Conflicts:
#	modules/ppcp-subscription/src/RenewalHandler.php
2022-07-08 19:47:45 +04:00
Alex P
fff2570124 Refactor shipping_preference
Extract its determination to a separate class, also remove useless CartRepository and use single PU to avoid confusion.
2022-07-05 14:37:04 +03:00
Narek Zakarian
90c2a01350 Capture virtual renewal orders functionality for subscriptions 2022-06-29 16:52:19 +04:00
Alex P
901ecdd1d9 Remove unused imports 2022-04-13 11:17:58 +03:00
Alex P
1c0df35f53 Handle free trial for paypal
Vault account without payment
2022-04-12 14:59:07 +03:00
Alex P
cdda2963c8 Fix phpdoc 2022-04-11 18:16:38 +03:00
Alex P
f5a472673b Handle free trial sub for cards
authorize 1$ and void
2022-04-06 09:10:24 +03:00
Alex P
65a29eacd2 Simplify expression 2022-03-23 10:17:26 +02:00
Alex P
5a0052060a Fix variable subscription checks 2022-03-23 10:17:05 +02:00
Alex P
fc89021df4 Add hook docs
phpcs rules updated
2022-02-17 18:28:59 +02:00
Emili Castells
44bee1cf6b
Merge pull request #425 from woocommerce/pcp-409-fix-renewal
Update renewal handler
2022-01-11 10:07:45 +01:00
Alex P
7bcff0c39c Update renewal to be similar to other order handlers 2022-01-05 15:25:22 +02:00
Alex P
d42cb3e47c Fix renewal logging 2022-01-04 17:30:26 +02:00
dinamiko
fcd3317d05 Fix psalm errors 2022-01-04 12:01:21 +01:00
dinamiko
9c72fbc247 Fix psalm errors 2022-01-04 11:52:43 +01:00
dinamiko
ae886ea425 Fix psalm errors 2022-01-04 11:40:22 +01:00
dinamiko
6d0c821b19 Check if pay for order contains subscription 2022-01-04 10:43:18 +01:00
dinamiko
64e166b51c Add variable subscription to cart contains subscription method 2021-11-22 10:11:04 +01:00
Alex P
edd441f5da Improve type check 2021-11-03 10:20:39 +02:00
dinamiko
60b43a9054 Do not display payments column in orders list screen 2021-10-18 15:20:13 +02:00
dinamiko
f4479f3694 Fix psalm errors 2021-10-18 15:13:47 +02:00
dinamiko
829b8b7ca7 Update payments column description 2021-10-18 14:29:03 +02:00
dinamiko
7fd07f6baa Display if payment is saved in orders list column 2021-10-18 12:27:54 +02:00
dinamiko
457ebeeb8c Move capture authorized payment into authorized payment processor 2021-10-14 15:45:57 +02:00
dinamiko
6a4719d92e Require PaymentTokenRepository into service 2021-10-01 11:23:55 +02:00
dinamiko
e74283e7f2 Fix phpcs errors 2021-10-01 10:50:24 +02:00
dinamiko
9ebedbfd85 Renaming class names 2021-09-30 16:30:52 +02:00
dinamiko
57ff2cc649 Fix merge conflicts 2021-09-30 12:52:15 +02:00
dinamiko
15f69e8151 Fix phpcs errors 2021-09-24 09:26:06 +02:00
dinamiko
2db0162988 Move payment tokens repository to vaulting package 2021-09-17 17:11:36 +02:00
dinamiko
05dcf5c4f4 Refactoring 2021-09-10 12:16:33 +02:00
Anton Ukhanev
df185157bd Update parameter name
Fixes PHPCS
2021-08-30 08:10:43 +02:00
Anton Ukhanev
3a72a73ae3 Auto-fix PHPCS 2021-08-30 08:08:41 +02:00
Anton Ukhanev
69d9631a73 Now using modularity standard v0.3
This is the newest release, and is the first one that is compatible
with PHP 8. Other changes are BC-breaking, but very very minor.
2021-08-26 11:11:49 +02:00
Anton Ukhanev
cabcb7d9e4 Add Container typehint to all service definitions 2021-08-26 11:10:16 +02:00
Anton Ukhanev
d4c8282518 Use Composer modules and convert modules to PSR-4
PSR-4 is much more robust and predictable. But to do this,
a source root dir must be specified for every module.
This could be done in the root file, but this is not very modular.
Instead, now every module declares its own source root by using
the amazing Composer Merge Plugin. This approach allows each module
to also declare its own dependencies. Together, these changes allow
modules to be easily extractable to separate pacakges when the need
arises, and in general improves modularity significantly.
2021-08-26 11:01:20 +02:00
Jorge A. Torres
069b89f1ad Add filter to short-circuit RenewalHandler::get_token_for_customer() 2021-08-09 08:27:10 -07:00
dinamiko
a943fc4fea Cast gateway id to string 2021-08-05 09:52:24 +02:00
dinamiko
e305849b6e Cast gateway description to string to prevent fatal error when is received as null 2021-08-04 16:52:29 +02:00
dinamiko
119543ae2d Update dhii/module-interface to version 0.3 2021-07-14 14:58:23 +02:00
dinamiko
d8817134a9 Update dhii\module-interface 2021-07-06 09:41:30 -05:00