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
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
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
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
Narek Zakarian
b9cdc56ad6
Convert the "," separator into "." before checking the price amount.
2022-05-24 18:35:39 +04:00
Alex P
a220396fcc
Use filter_var for REQUEST_URI
...
In some cases filter_input returns NULL for server variables even though they are present.
Such as this bug https://bugs.php.net/bug.php?id=49184 , though not only in CLI.
At least in our DDEV it happens here.
2022-05-23 10:30:13 +03:00
dinamiko
4ca2e637ed
Merge trunk and fix conflicts
2022-05-17 17:05:00 +02:00
Emili Castells
79db7cfbfc
Merge pull request #375 from woocommerce/issue-174-vaulting-pay-later-ux
...
Enhance the UX of the Pay Later and Vaulting features
2022-05-17 16:25:33 +02:00
Emili Castells
b7c4f23b62
Merge pull request #641 from woocommerce/PCP-580-manual-orders-return-an-error-for-guest-users
...
Store order info in wc order meta to get if there is no session.
2022-05-17 13:55:35 +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
4b4be4ff1b
Merge pull request #647 from woocommerce/pcp-478-fix-vaulting-redirect
...
Remove redirect after vaulting settings check
2022-05-17 12:53:54 +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
f20b539df9
Merge trunk and fix conflicts
2022-05-17 10:59:39 +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
Emili Castells
63c8cb8851
Merge pull request #609 from woocommerce/PCP-608-add-the-paypal-fee-to-the-custom-fields
...
Add "PayPal Transaction Key" into order custom fields.
2022-05-17 10:45:42 +02:00
Emili Castells
fc31202305
Merge pull request #607 from woocommerce/PCP-632-smart-buttons-not-loading
...
Fix the button render logic when free product is in cart.
2022-05-17 10:45:09 +02:00
Emili Castells
125150ac58
Merge pull request #578 from woocommerce/PCP-616-disabling-paypal-checkout-on-removes-buttons-from-cart
...
Unset the gateway only on checkout page
2022-05-17 10:44:27 +02:00
Emili Castells
4ec36a8547
Merge pull request #621 from woocommerce/pcp-440-fix-partial-refunds
...
Fix duplicated partial refunds
2022-05-17 10:43:39 +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