Commit graph

95 commits

Author SHA1 Message Date
Narek Zakarian
e8c59d98b4
fix tests 2022-11-29 19:53:32 +04:00
Narek Zakarian
50e18c1518
Add FraudNet header when creating order. 2022-11-29 19:31:58 +04:00
dinamiko
f5fa440f5d Update changelog, skip failing testing for now 2022-08-31 17:20:54 +02:00
Alex Pantechovskis
cfc549958d
Merge pull request #699 from woocommerce/PCP-673-store-customer-id-for-vaulted-payment
Store the customer id for vaulted payment method in usermeta
2022-07-26 16:09:30 +03:00
Alex P
619e9d2552 Change address handling for card button
Make the name field to always appear and send at least one address
2022-07-19 09:24:19 +03:00
Emili Castells
4c6b7b9659
Merge pull request #719 from woocommerce/pcp-443-fix-vaulted-card-button
Fix vaulted card button on order page
2022-07-08 10:26:53 +02:00
Alex P
2ca64739db Use str value when checking mismatch
Otherwise the check may fail depending on the rounding used when creating the Money objects
2022-07-07 12:36:14 +03:00
Alex P
82adf1933f Refactor money value formatting
Do not duplicate code and send string value for JPY
2022-07-07 12:34:21 +03:00
Alex P
9ab091b945 Fix shipping preference for vaulted card button 2022-07-05 17:30:12 +03: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
dinamiko
1d9af879ef Fix phpunit 2022-06-27 12:33:51 +02:00
dinamiko
933a80b536 Merge trunk 2022-06-27 12:28:43 +02:00
Narek Zakarian
4c89caf0d9 Fix the tests 2022-06-23 19:18:29 +04:00
Alex P
84a5d9cd0f Merge branch 'trunk' into pcp-328-mismatch 2022-06-20 16:35:37 +03:00
Alex P
af15246a96 Fix order fees total 2022-06-17 09:41:05 +03:00
dinamiko
0262549382 Merge branch 'trunk' into PCP-417-new-feature---pay-upon-invoice 2022-06-16 11:12:41 +02:00
Alex P
02c84e43e0 Improve item total/price retrieval
Less calculations, also fee was not included in item price for subs with fee
2022-06-15 21:33:25 +03:00
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
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
dinamiko
062c08f19f Remove unit test 2022-06-02 11:37:53 +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
Alex P
88220aa3c6 Do not send negative price items, add to discount 2022-05-16 15:15:42 +03:00
Alex P
a8c1f386aa Fix item description with emoji 2022-05-13 17:12:56 +03: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
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
372884ce16 Fix phpunit 2022-04-19 10:37:33 +02:00
Alex P
4cecb908e6 Add tests 2022-04-13 10:40:28 +03:00
Alex P
368d50ce7b Add test 2022-04-12 16:43:42 +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
Alex P
f5a472673b Handle free trial sub for cards
authorize 1$ and void
2022-04-06 09:10:24 +03:00
Narek Zakarian
56b4b6635c Adjust tests 2022-03-15 16:40:49 +04:00
dinamiko
caf9a2c50d Fix phpunit test 2022-02-23 11:23:44 +01:00
dinamiko
d86fdc35ff Merge branch 'trunk' into pcp-307-fee 2022-02-23 10:06:11 +01:00
Alex P
e22cb04350 Fix file name 2022-02-14 12:41:07 +02:00
Alex P
2ab75368b4 Add SellerReceivableBreakdown 2022-02-14 10:46:55 +02:00
Alex P
5cbd84a050 Add MoneyFactory 2022-02-14 10:46:55 +02:00
Alex P
361d2365fc Update tests 2022-02-09 16:28:27 +02:00
Alex P
52e08a0cf2 Fix tests 2022-01-25 17:21:50 +02:00
Alex P
23e68419f8 Remove unused 2022-01-25 15:49:43 +02:00
dinamiko
96d154a856 Refactoring 2022-01-05 14:12:37 +01:00
dinamiko
0ae7e6e9bc Extract customer id retrieval 2022-01-05 12:49:49 +01:00
dinamiko
ab59654a9b Fix phpunit errors 2022-01-04 14:59:35 +01:00
dinamiko
d33ca00ac7 Fix CI errors 2022-01-03 15:15:33 +01:00
Alex P
ffe32070d0 Extract shop currency, country to services 2021-11-30 10:40:38 +02:00
Emili Castells
2638486331
Merge pull request #373 from woocommerce/pcp-333-fix-tax-mismatch
Use subtotal_tax instead of adding taxes ourselves
2021-11-23 12:33:46 +01:00