Commit graph

334 commits

Author SHA1 Message Date
dinamiko
99f28ec68c Unify all items into one and set tax values from amount 2022-08-31 15:32:55 +02:00
dinamiko
18490d76be Fix rounding issue (WIP) 2022-08-31 13:08:30 +02:00
dinamiko
0a98d38891 Add decimal rounding fix for items total and tax total 2022-08-31 12:17:20 +02:00
dinamiko
6b84a66a48 Add round precision to diff 2022-08-31 11:14:43 +02:00
dinamiko
8a639e28d1 Add fix for one decimal difference 2022-08-30 17:57:03 +02:00
dinamiko
15a6685ff2 Allow skip ditch items when mismatch 2022-08-30 16:40:04 +02:00
dinamiko
434876f81e Add fees taxes 2022-08-30 14:40:03 +02:00
dinamiko
28294fa79c Ensure item taxes for pui payment (WIP) 2022-08-29 16:20:39 +02:00
dinamiko
c95b9608d4 Ensure item taxes for pui payment (WIP) 2022-08-29 16:16:34 +02:00
dinamiko
0018227d88 Ensure item taxes for pui payment (WIP) 2022-08-29 15:18:40 +02:00
dinamiko
a036c9956c Add wc payments plugin available countries 2022-08-22 10:53:22 +02:00
Narek Zakarian
9b63ab0b91 Merge remote-tracking branch 'origin/trunk' into PCP-155-tracking-api
# Conflicts:
#	modules/ppcp-wc-gateway/services.php
#	modules/ppcp-wc-gateway/src/Helper/PayUponInvoiceHelper.php
#	tests/PHPUnit/WcGateway/Helper/PayUponInvoiceHelperTest.php
2022-08-17 17:11:20 +04:00
Narek Zakarian
36d86aaba5 Function to check if tracking is enabled 2022-08-16 16:18:39 +04:00
Alex P
1049fda586 Merge branch 'trunk' into PCP-726-add-oxxo-apm-alternative-payment 2022-07-26 16:59:27 +03: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
c2d0a3aa69 Add an option to hide card button gateway if not needed 2022-07-26 10:58:21 +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
Alex P
d4e8bd453c Add card button gateway 2022-07-19 09:20:26 +03:00
Alex P
81c786150d Remove attempt to use non-existing .issues property
I think it never worked, and the API docs do not mention it (only the single .issue property),
and either way this usage here does not seem helpful, issue/description still contains the same unfriendly text as in the exception message already
2022-07-12 15:46:34 +03:00
dinamiko
cbe10b5f6e Fix merge issues 2022-07-11 12:30:29 +02:00
Emili Castells
9dd23f3ccf
Merge pull request #714 from woocommerce/PCP-735-1.9.0-test5---missing-paypal-fee
Missing PayPal fee in WC order details for PUI purchase (735)
2022-07-08 10:31:49 +02: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
f013d19047 Add PayPal fee to pui order 2022-07-04 12:20:34 +02:00
dinamiko
eb1fafbc61 Ensure items contains tax 2022-06-27 16:00:08 +02:00
dinamiko
6fab64e658 Revert logging default behavior 2022-06-27 14:25:02 +02:00
dinamiko
933a80b536 Merge trunk 2022-06-27 12:28:43 +02:00
Narek Zakarian
4b6e2ab2d5 Store the customer id for vaulted payment method in usermeta 2022-06-23 19:05:55 +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
24586d0910 Send shipping/discount taxes as tax 2022-06-15 16:28:44 +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
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