Narek Zakarian
20c3c6e345
Fix messaging display when the buttons are disabled.
2022-06-20 17:12:58 +04:00
Narek Zakarian
9da3f112bc
Add the hiding messages callback to single product handler
2022-06-20 15:28:07 +04:00
Narek Zakarian
9c85fce2b5
Merge branch 'PCP-625-paypal-smart-buttons-not-display-when-parent-is-out-of-stock' into PCP-624-pay-later-messaging-displayed-when-variation-is-not-selected
2022-06-20 14:10:51 +04: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
Narek Zakarian
4639a385d6
Fix credit card detection.
2022-06-17 17:19:03 +04: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
Emili Castells
2687365b5d
Merge pull request #662 from woocommerce/pcp-708-fix-free-trial-disable-funding
...
Fix disable-funding when free trial but dcc disabled
2022-06-14 11:51:58 +02:00
Emili Castells
22b7aed89a
Merge pull request #670 from woocommerce/PCP-625-paypal-smart-buttons-not-display-when-parent-is-out-of-stock
...
If product has inStock variation then allow button rendering
2022-06-14 11:50:01 +02:00
Emili Castells
d0fbfacf49
Merge pull request #668 from woocommerce/PCP-624-pay-later-messaging-displayed-when-variation-is-not-selected
...
Do not render messages when buttons are not rendered.
2022-06-14 11:49:12 +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
Emili Castells
3e28553201
Merge pull request #675 from woocommerce/pcp-448-quick-fix-validation
...
Add basic input validation before opening PayPal popup
2022-06-14 11:11:31 +02:00
dinamiko
503a067f69
Fix typo
2022-06-14 11:06:28 +02:00
dinamiko
5de360c869
Fix conflicts
2022-06-14 10:59:47 +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
bb86f1b8e6
Throw on createOrder failure to stop PayPal from attempting to continue
2022-06-08 16:16:13 +03:00
Alex P
da539ed578
Add email validation like in WC to fix confusing error message
2022-06-08 15:59:16 +03:00
Alex P
fdbbe6afb3
Send form data as json object to fix decoding
...
was decoded twice, in RequestData and by parse_str
2022-06-08 15:59:01 +03:00
dinamiko
8a0b439e5f
Add order status CREATED
to order processor check
2022-06-07 12:17:35 +02:00
Narek Zakarian
0c185fca08
Fix the order status for virtual & downloadable products
2022-06-06 16:12:42 +04:00
Alex P
993e109c49
Add basic input validation before opening PayPal popup
2022-06-03 16:27:53 +03:00
dinamiko
616e343f57
Update method description
2022-06-02 15:46:56 +02:00
dinamiko
297fb4b92a
Fix phpcs
2022-06-02 15:39:02 +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
Narek Zakarian
ebda39d130
If product has inStock variation then allow buttons
2022-06-01 18:17:51 +04:00
Narek Zakarian
6effc222f2
Do not render messages when buttons are not rendered.
2022-06-01 15:43:49 +04:00
dinamiko
846a278730
Merge branch 'PCP-417-new-feature---pay-upon-invoice' into PCP-687-do-not-call-partner-referrals-si
2022-06-01 11:37:16 +02:00
dinamiko
5ccc49a4a8
Fix json error display
2022-05-31 15:53:39 +02:00
dinamiko
e0a94bf2ed
Persist client credentials as soon as they are recived
2022-05-31 15:42:40 +02:00
dinamiko
8cffaf9826
Alert instead of console error when response is not successful
2022-05-31 15:11:56 +02:00
dinamiko
4b85831f52
Do not update button links if response is not successful
2022-05-31 09:35:50 +02:00
Alex P
f54451f39c
Fix disable-funding when free trial but dcc disabled
...
was sending array values instead of keys
2022-05-30 15:09:41 +03:00
dinamiko
24280dda3a
Fix wrong cache key product assigment
2022-05-27 16:07:52 +02:00
dinamiko
f1e54ced4f
Get signup links without reloading the page (WIP)
2022-05-27 14:53:55 +02:00