Emili Castells
9de45ae393
Merge pull request #711 from woocommerce/PCP-733-1.9.0-test5---pui-gateway-is-dis
...
PUI gateway is displayed with unsupported store currency (733)
2022-07-08 10:31:04 +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
86f85eff63
Use shop currency service
2022-07-01 15:50:14 +02:00
dinamiko
b71cff1d57
Check pui currency in payment gateways
2022-07-01 14:57:59 +02:00
Alex P
7f42fe1882
Show basic validation error only for required fields
...
Otherwise it may trigger on some sites when the field is no longer required but still marked as invalid, e.g. after switching to a country without required state
2022-07-01 11:43:11 +03:00
Alex P
57e4cb51ea
Fix form fields type
...
was broken after #680
2022-06-29 14:41:31 +03:00
Alex P
be9c624264
Add filter allowing to disable the basic client-side validation
...
In case some conflicts occur.
2022-06-28 12:09:18 +03: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
Emili Castells
b118c4b60c
Merge pull request #696 from woocommerce/pcp-479-remove-dcc-continuation
...
Do not enter the checkout continuation state for dcc
2022-06-27 10:37:39 +02:00
Emili Castells
eed265a909
Merge pull request #690 from woocommerce/pcp-328-mismatch
...
Reduce the chance of empty order details, fix shipping/discount taxes, support missing product association
2022-06-27 10:33:49 +02:00
dinamiko
70189f1928
Ensure birth date is not empty
2022-06-23 15:03:26 +02:00
dinamiko
67ff582511
Fix psalm
2022-06-23 14:55:16 +02:00
dinamiko
63cb0bad56
Log pui payment instructions in order
2022-06-23 14:15:11 +02:00
dinamiko
c880815e34
Display pui payment instructions in order metabox
2022-06-23 12:42:53 +02:00
dinamiko
2b4f77818b
Fix psalm
2022-06-23 11:50:08 +02:00
dinamiko
035ff32d59
Fail WC order only if PayPal order status is not completed
2022-06-23 11:13:41 +02:00
Alex P
5e547c79cc
Do not enter the checkout continuation state for dcc
...
it supposed to be used only for PayPal payments started on the product or cart pages
2022-06-22 17:22:40 +03:00
dinamiko
5fbe7580d0
Log order status
2022-06-22 11:47:35 +02:00
dinamiko
644604595e
Print order status in log
2022-06-22 11:44:28 +02:00
dinamiko
977cd2f713
Add priority and number of arguments to woocommerce_paypal_payments_check_pui_payment_captured
action
2022-06-22 11:33:39 +02:00
dinamiko
fff6c84e91
Log order status in payment captured webhook checker
2022-06-22 11:11:16 +02:00
dinamiko
fcf9b6b19e
Add phone number validation for non-numeric characters
2022-06-22 10:48:56 +02:00
dinamiko
d7363a0d44
Fix phpcs
2022-06-21 09:19:21 +02:00
Alex P
ba432b9705
Fix basic validation
...
Use :visible in both selectors, otherwise it may result in an unwanted error if something triggered validation for hidden fields.
2022-06-20 18:27:04 +03:00
dinamiko
500487f5f9
Check if WC invalid class is visible
2022-06-20 17:22:28 +02:00
Alex P
84a5d9cd0f
Merge branch 'trunk' into pcp-328-mismatch
2022-06-20 16:35:37 +03:00
dinamiko
3973bd4a3b
Fix psalm
2022-06-20 10:39:18 +02:00
dinamiko
114d7124ae
Merge branch 'PCP-417-new-feature---pay-upon-invoice' of github.com:woocommerce/woocommerce-paypal-payments into PCP-417-new-feature---pay-upon-invoice
2022-06-20 10:32:03 +02:00
dinamiko
40cc95d895
Enable logging by default for now
2022-06-20 10:31:39 +02:00
emilicastells
d6bd02c9c1
Make logo url mandatory field
2022-06-17 16:59:49 +02:00
emilicastells
b362f295f8
Add custom validation for phone number
2022-06-17 16:04:57 +02: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
c59683b5ea
Fix phpcs
...
I guess the @since comments are not very critical for our hooks,
and anyway it should not be an error, finding the first version for every hook would take lots of time now.
not sure if there is a better way to suppress it in phpcs
2022-06-15 16:20:43 +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
dinamiko
5a6113f714
Add #639 to changelog and log not getting PayPal order error
2022-06-14 16:18:53 +02: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
4ff581a5f7
Merge pull request #655 from woocommerce/PCP-694-smart-button-not-visible-on-single-product-page
...
Convert the "," separator into "." before checking the price amount.
2022-06-14 11:55:26 +02:00
Emili Castells
a8fb55daa4
Merge pull request #676 from woocommerce/PCP-711-capture-virtual-only-orders-intent-problem
...
Fix the order status for virtual & downloadable products
2022-06-14 11:53:44 +02:00