Commit graph

1728 commits

Author SHA1 Message Date
Alex P
fdbbfd8dec Check null instead of float cast 2021-10-29 09:20:39 +03:00
Alex P
ea462af3bf Fix psalm errors 2021-10-28 18:25:42 +03:00
Alex P
b7f628c8c7 Simplify null breakdown check
If it is null, we would return false either way.
Also why suddenly use $this->amount() if it is passed as parameter.
2021-10-28 17:39:33 +03:00
dinamiko
31572b747e Merge PCP-204 2021-10-28 15:51:29 +02:00
dinamiko
990c9f946e Add user needs to be logged in message when subscription in the cart 2021-10-28 12:43:02 +02:00
dinamiko
47d79bb9f6 Fix phpcs error 2021-10-27 15:33:57 +02:00
dinamiko
0bfda54855 Refactor checkout PayPal order creation 2021-10-27 15:22:24 +02:00
dinamiko
9b6b0e2769 Do not validate WC checkout form when creating PayPal order 2021-10-27 12:29:11 +02:00
dinamiko
3c237b6315 Do not display gateways if subscription in cart and user is not logged in 2021-10-25 16:27:05 +02:00
dinamiko
1782c4fe16 Display PayPal buttons when not logged in and subscription in the cart 2021-10-22 12:49:04 +02:00
dinamiko
8aa11ead78 Merge branch 'pcp-204-fix-auto-registration-loop' into PCP-305-enable-save-card-for-guest-users 2021-10-22 11:55:51 +02:00
dinamiko
0a81b27f41 Enforce vault if contains subscription 2021-10-21 14:41:44 +02:00
Emili Castells
0460342b41
Merge pull request #337 from woocommerce/remove-unneeded-debug-logging
Remove leftover of development logging
2021-10-20 16:49:02 +02:00
Alex P
af746a52c1 Remove leftover of development logging 2021-10-20 17:41:46 +03:00
Emili Castells
5fb4a39ec9
Merge pull request #327 from woocommerce/PCP-327-prevent-subscription-from-being-
Prevent subscription from being purchased when saving payment fails
2021-10-20 15:38:33 +02:00
dinamiko
697bf3ce09 Fix phpcs errors 2021-10-20 15:32:57 +02:00
dinamiko
c019795ac7 Fix duplicate parameter in constructor assigment 2021-10-20 15:22:39 +02:00
dinamiko
e3a793e3e5 Fix merge conflicts 2021-10-20 15:01:53 +02:00
dinamiko
6649a362f6 Capture payment only if intent setting is capture 2021-10-20 10:40:46 +02:00
Alex P
49bb1bc371 Check if registration is needed
createaccount checkbox is not present when guest checkout is disabled
2021-10-20 10:30:48 +03:00
dinamiko
0ea8a77359 Capture payment when using saved card if intent setting is capture 2021-10-19 16:25:59 +02:00
Emili Castells
cf3b6e6ab1
Merge pull request #319 from woocommerce/capture-order-action-availability
Do not show capture order action after capture, refund/cancel/fail
2021-10-19 09:54:36 +02:00
Emili Castells
70fed5fa7e
Merge pull request #329 from woocommerce/pcp-338-missing-transaction-id
Fix missing transaction id
2021-10-19 09:53:56 +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
Emili Castells
65d05b935e
Merge pull request #332 from woocommerce/PCP-319-cant-checkout-to-certain-countri
Change shipping preference if purchase units does not contain shipping
2021-10-18 12:38:19 +02:00
dinamiko
7fd07f6baa Display if payment is saved in orders list column 2021-10-18 12:27:54 +02:00
dinamiko
038d36f556 Revent capture in lowercase 2021-10-18 10:54:57 +02:00
dinamiko
bc7455e10f Improve method name and description 2021-10-15 17:22:06 +02:00
dinamiko
ba061ce15b Uppercase capture 2021-10-15 17:11:52 +02:00
Emili Castells
91ce420cb5
Merge pull request #331 from woocommerce/pcp-327-refactor
Extract is_voidable_authorization
2021-10-15 16:58:38 +02:00
dinamiko
b5748b2911 Fix unit tests 2021-10-15 16:28:18 +02:00
dinamiko
3295488b29 Change shipping preference if purchase units does not contain shipping 2021-10-15 16:16:54 +02:00
Alex P
b0396489c9 Extract is_voidable_authorization 2021-10-15 16:20:00 +03:00
dinamiko
b33e6b6ba2 Add pending status to voidable authorization 2021-10-15 11:32:16 +02:00
Alex P
93be2ded35 Fix rest_ensure_response psalm error
rest_ensure_response can return WP_Error if wp error was passed
2021-10-15 10:58:29 +03:00
Alex P
3051f27fab Fix psalm 2021-10-15 10:54:38 +03:00
Alex P
21acaf9e77 Set transaction id after webhook capture 2021-10-15 10:24:19 +03:00
Alex P
94c3356c82 Set transaction id after manual capture 2021-10-15 09:48:29 +03:00
Alex P
58cb230867 Set transaction id for saved card payments 2021-10-14 18:46:39 +03:00
Alex P
e83db4a103 Save wc order after setting transaction id 2021-10-14 18:46:21 +03:00
Alex P
c8819086d8 Extract transaction functions to trait 2021-10-14 18:33:16 +03:00
dinamiko
0b25e8ae48 Fix psalm error 2021-10-14 15:55:23 +02:00
dinamiko
096b013933 Revert change (needed temporary for creating unit test coverage) 2021-10-14 15:53:11 +02:00
dinamiko
457ebeeb8c Move capture authorized payment into authorized payment processor 2021-10-14 15:45:57 +02:00
Alex P
d40384aa1a Set transaction id for authorization 2021-10-14 16:34:03 +03:00
dinamiko
ab0ed12495 Merge branch 'trunk' into PCP-327-prevent-subscription-from-being- 2021-10-14 10:34:26 +02:00
Alex P
3330ad34da Merge remote-tracking branch 'origin/trunk' into capture-order-action-availability 2021-10-13 17:51:21 +03:00
Emili Castells
79e2dd2ef5
Merge pull request #322 from woocommerce/pcp-271-use-psalm
Add psalm
2021-10-13 16:48:49 +02:00