Commit graph

348 commits

Author SHA1 Message Date
Alex P
770f8e558b Do not send tax in each item
Looks like it is not displayed anyway, and it causes mismatch + cannot send shipping/discount taxes as tax
2022-06-15 10:14:42 +03:00
Alex P
0e82a5f6c9 Fix rounding when checking total mismatch 2022-06-15 09:58:57 +03:00
Emili Castells
ceb95952a9
Merge pull request #672 from woocommerce/PCP-681-refund-failed-no-country-given-f
When creating `Address` do not throw but set empty string when no country code is received
2022-06-14 16:08:17 +02:00
Emili Castells
259f824dac
Merge pull request #657 from woocommerce/PCP-687-do-not-call-partner-referrals-si
Cache partner referrals signup links
2022-06-14 15:05:15 +02:00
dinamiko
e153e2be35 Merge trunk 2022-06-14 15:03:19 +02:00
Emili Castells
e9e49fb8f0
Merge pull request #680 from woocommerce/pcp-579-email-validation
Fix form decoding and email handling
2022-06-14 11:15:53 +02:00
Alex P
4f91e78591 Do not fail if no WC_Product in order item
It is possible for an order item to not have product, such as if created by a plugin.
2022-06-13 18:52:52 +03:00
Alex P
da539ed578 Add email validation like in WC to fix confusing error message 2022-06-08 15:59:16 +03:00
dinamiko
616e343f57 Update method description 2022-06-02 15:46:56 +02:00
dinamiko
0a993f854d Do not check order approved status if it does not contains physical goods 2022-06-02 15:11:01 +02:00
dinamiko
8a51994db8 Do not throw but set empty string when no country code is received 2022-06-02 11:33:07 +02:00
dinamiko
0c5dfbc3e8 Add signup link cache expiration for 3 months 2022-05-26 11:05:30 +02:00
dinamiko
ade0e51e47 Merge branch 'trunk' into PCP-417-new-feature---pay-upon-invoice 2022-05-17 14:16:23 +02:00
Emili Castells
cff92d54ec
Merge pull request #642 from woocommerce/pcp-357-negative-fees
Do not send negative price items, add to discount
2022-05-17 13:54:22 +02:00
Emili Castells
f37c9d41a1
Merge pull request #648 from woocommerce/pcp-347-fix-emoji
Fix item description with emoji
2022-05-17 12:55:34 +02:00
Emili Castells
5cd439fa20
Merge pull request #633 from woocommerce/pcp-615-invalid-address
Retry without shipping field when got invalid address error
2022-05-17 12:53:00 +02:00
dinamiko
6ed616802d Merge branch 'trunk' into PCP-417-new-feature---pay-upon-invoice 2022-05-17 11:10:36 +02:00
Emili Castells
486fe96a3e
Merge pull request #617 from woocommerce/PCP-647-fraud-prevention-function
Add Fraud Processor Response as an order note.
2022-05-17 10:46:20 +02:00
dinamiko
7d6146bfe9 Add tracking scope to referral api 2022-05-16 16:54:05 +02:00
Alex P
88220aa3c6 Do not send negative price items, add to discount 2022-05-16 15:15:42 +03:00
Alex P
d63f89a4a2 Retry without shipping field when got invalid address error 2022-05-16 15:12:40 +03:00
Alex P
a8c1f386aa Fix item description with emoji 2022-05-13 17:12:56 +03:00
dinamiko
a58e971cad Display all body responses in the logs 2022-05-12 16:46:45 +02:00
Alex P
dd4b39971f Remove duplicated variable 2022-05-03 16:14:22 +03:00
dinamiko
df549b6dff Remove testing variables 2022-05-03 11:21:50 +02:00
Alex P
35f058870a Skip already handled refunds in webhook
When we add a refund from WC, we still receive a webhook with it. And for some partial refunds the duplicated refund can be added in WC.
2022-04-28 16:20:05 +03:00
dinamiko
7dbb0e32c1 Fix psalm 2022-04-28 11:26:25 +02:00
dinamiko
4978107554 Ensure purchase units contains tax rate and shipping when creating the order 2022-04-28 11:02:00 +02:00
dinamiko
158f900282 Merge branch 'trunk' into PCP-417-new-feature---pay-upon-invoice 2022-04-28 09:10:18 +02:00
Alex P
13e04b009c Fix const name 2022-04-27 23:50:23 +03:00
Alex P
e72b80ae72 Show error if PayPal already vaulted for another WC customer 2022-04-27 10:45:05 +03:00
Narek Zakarian
d148a1bf9a Adjust API client services to support fraud response. 2022-04-25 19:17:13 +04:00
Narek Zakarian
fd77690d46 Include fraud response in order capture. 2022-04-25 19:16:09 +04:00
Narek Zakarian
4c1695788f Create Fraud processor response and it's factory. 2022-04-25 19:14:21 +04:00
dinamiko
b5f63b9f47 Inject json config and retrigger fraudnet 2022-04-25 14:31:43 +02:00
Alex P
4a4f131325 Handle card smart button for free trial (1$ auth + void)
Disabling this funding source also disables DCC
2022-04-25 15:24:37 +03:00
dinamiko
cf0d7858fd Add unit tests 2022-04-22 15:21:00 +02:00
dinamiko
0f93759c9c Do not display pui tab if wc store is not is germany 2022-04-22 12:19:55 +02:00
dinamiko
c7cf9bc3e9 Add unit tests 2022-04-22 11:49:30 +02:00
dinamiko
bd77953161 Refactoring 2022-04-21 16:51:17 +02:00
dinamiko
372884ce16 Fix phpunit 2022-04-19 10:37:33 +02:00
dinamiko
e9cf818799 Fix phpcd (WIP) 2022-04-14 17:17:56 +02:00
dinamiko
6b7992b411 Merge trunk 2022-04-13 11:26:24 +02:00
Emili Castells
2d56e3ffad
Merge pull request #540 from woocommerce/PCP-347-emoji-in-product-description-causing-error
Fix the description counting when emoji is used
2022-04-13 10:29:12 +02:00
Alex P
901ecdd1d9 Remove unused imports 2022-04-13 11:17:58 +03:00
Alex P
4cecb908e6 Add tests 2022-04-13 10:40:28 +03:00
Alex P
1b5052a858 Merge branch 'trunk' into pcp-475-free-trial 2022-04-12 15:32:31 +03:00
Alex P
1c0df35f53 Handle free trial for paypal
Vault account without payment
2022-04-12 14:59:07 +03:00
Emili Castells
ecf3feab62
Merge pull request #538 from woocommerce/PCP-574-filter-to-modify-sending-data
Add filter to allow modifying of order creation request body data
2022-04-12 09:16:08 +02:00
Emili Castells
50e282aba5
Merge pull request #536 from woocommerce/PCP-564-pay-for-order-guest-failing
Check if payer's Email and name are set before sending data
2022-04-12 09:15:15 +02:00