Commit graph

630 commits

Author SHA1 Message Date
Narek Zakarian
20c3c6e345 Fix messaging display when the buttons are disabled. 2022-06-20 17:12:58 +04: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
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
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
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
Alex P
993e109c49 Add basic input validation before opening PayPal popup 2022-06-03 16:27:53 +03:00
dinamiko
0a993f854d Do not check order approved status if it does not contains physical goods 2022-06-02 15:11:01 +02:00
Narek Zakarian
ebda39d130 If product has inStock variation then allow buttons 2022-06-01 18:17:51 +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
dinamiko
4ca2e637ed Merge trunk and fix conflicts 2022-05-17 17:05:00 +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
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
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
Alex P
d63f89a4a2 Retry without shipping field when got invalid address error 2022-05-16 15:12:40 +03:00
Alex P
fc3ba70d4b Extract filter to a function 2022-05-11 18:16:50 +03:00
Narek Zakarian
ab0e90dab0 Store order info in wc order meta to get if there is no session. 2022-05-10 18:46:40 +04:00
leonardo lopes de albuquerque
e6775ce3fe
Merge pull request #353 from helgatheviking/issues/234-supports 2022-05-10 10:05:59 -03:00
helgatheviking
0052aacbbc Rename new filter to woocommerce_paypal_payments_product_supports_payment_request_button to avoid abbreviates 2022-05-09 13:19:32 -06:00
Narek Zakarian
199b18c7f3 Fix the psalm error about no return type. 2022-05-06 18:22:58 +04:00
Narek Zakarian
5965cc4bde Enable the "pay later" on card page when card page is updated. 2022-05-06 18:22:11 +04:00
Narek Zakarian
6ac84bc801 Merge branch 'PCP-632-smart-buttons-not-loading' into PCP-163-pay-later-message-bug 2022-05-06 17:34:13 +04:00
Narek Zakarian
c4f5d7a139 Move the subscription cart check into the callbacks.
The subscription product in cart existence and the vaulting enabled check should be called inside the button renderer hook callback so that the mini-cart ajax refresh will take it into the consideration.
2022-05-02 17:48:14 +04: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
Alex P
a5191b04ff Do not disable card funding source for free trial if DCC enabled
Otherwise DCC gateway gets disabled (paypal.HostedFields.isEligible() becomes false)
2022-04-25 15:13:46 +03:00
Narek Zakarian
b268e62c9f Fix the button render logic when free product is in cart. 2022-04-18 18:16:22 +04:00
Emili Castells
0f1f729973
Merge pull request #561 from woocommerce/pcp-612-dcc-loading
Hide DCC order button until loaded, show spinner
2022-04-13 10:31:44 +02:00
Alex P
901ecdd1d9 Remove unused imports 2022-04-13 11:17:58 +03:00
Alex P
4c5f0552f9 Remove unneeded token confirmation attempts 2022-04-13 10:40:09 +03:00
Alex P
9370eba320 Fix mini-cart free trial check 2022-04-12 17:20:32 +03:00
Alex P
b928e5aaa4 Remove additional paypal buttons for free trial 2022-04-12 15:29:23 +03:00
Alex P
c701b46a40 Remove paypal buttons for free trial everywhere except checkout 2022-04-12 15:12:21 +03:00
Alex P
1c0df35f53 Handle free trial for paypal
Vault account without payment
2022-04-12 14:59:07 +03:00
Alex P
0da5758656 Merge branch 'trunk' into pcp-475-free-trial 2022-04-07 09:42:32 +03:00
Narek Zakarian
515a06542e Use the cart price calculating method inside the handler. 2022-04-06 18:18:05 +04:00
Narek Zakarian
f46341466f Check the cart total amount inside mini cart renderer hook. 2022-04-06 17:57:59 +04:00
Alex P
f5a472673b Handle free trial sub for cards
authorize 1$ and void
2022-04-06 09:10:24 +03:00
Alex P
8ae32e8396 Hide DCC order button until loaded, show spinner 2022-03-31 08:52:33 +03:00
dinamiko
78d98be098 Move up pay order render button before checking empty cart 2022-03-28 16:33:45 +02:00
Emili Castells
fe561e34e4
Merge pull request #497 from Chaithi/trunk
Add Spain and Italy to messaging (565)
2022-03-23 11:19:13 +01:00
Emili Castells
eb7dbbcf9e Merge pull request #537 from woocommerce/PCP-576-place-order-button-looking-unstyled
Add "Type" attribute to checkout button
2022-03-22 11:53:38 +01:00
Emili Castells
ca517e4f50
Merge pull request #500 from woocommerce/PCP-500-hide-smart-buttons-for-free-product
Check if price total is not zero before showing buttons
2022-03-22 11:52:46 +01:00
Emili Castells
eb247f1cba
Merge pull request #534 from woocommerce/pcp-272-buttons-loading-time
Buttons loading time
2022-03-22 10:12:18 +01:00
Alex P
d791873033 Move buttons loading spinner to the buttons container
should be more reliable, and for Pay Now there is no .place-order
2022-03-17 15:59:19 +02:00
Narek Zakarian
5585461280 Add "Type" attribute to checkout button 2022-03-15 18:02:35 +04:00