Commit graph

396 commits

Author SHA1 Message Date
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
d3b8e04135
Update CartBootstap.js 2022-05-04 15:34:19 +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
dependabot[bot]
f5eb674570
Bump minimist from 1.2.5 to 1.2.6 in /modules/ppcp-button
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-13 10:32:23 +00: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
87aed70199 Improve spinner before redirect 2022-04-12 18:40:24 +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
Emili Castells
1cd64cff13
Merge pull request #572 from woocommerce/PCP-623-errors-in-the-checkout-page-when
Use `hasOwnProperty` instead of `length` for checking if property exist
2022-04-06 16:51:58 +02: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
dinamiko
c6070e6567 Just use err.details 2022-04-05 15:01:46 +02:00
dinamiko
b7a9ccec4e Use hasOwnProperty instead of length for checking if property exist 2022-04-05 14:29:33 +02:00
Alex P
8ae32e8396 Hide DCC order button until loaded, show spinner 2022-03-31 08:52:33 +03:00
Emili Castells
d6286ec6e5
Merge pull request #556 from woocommerce/PCP-604-paypal-button-missing-on-pay-for
Move up pay order render button before checking empty cart
2022-03-28 17:20:49 +02:00
Emili Castells
e088d3c53e
Merge pull request #554 from woocommerce/PCP-598-buttons-not-visible-in-mini-cart
Remove vaulting conditional on minicart render buttons
2022-03-28 17:13:01 +02:00
dinamiko
78d98be098 Move up pay order render button before checking empty cart 2022-03-28 16:33:45 +02:00
dinamiko
0f47429d91 Remove vaulting conditional on minicart render buttons 2022-03-28 15:24:46 +02:00
Narek Zakarian
fbc20c35ea Fix the product price amount calculation 2022-03-25 16:15:18 +04: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
f0ff7de9fa Do not hide button on change payment page 2022-03-18 09:24:55 +02:00
Alex P
4fe5a63f42 Hide "Place order"/show spinner in Pay Now too 2022-03-17 16:00:55 +02: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
Alex P
a1d735bc79 Hide "Place order"/show spinner only on normal checkout 2022-03-17 10:31:18 +02:00
Alex P
42345d4947 Add buttons loading spinner 2022-03-17 10:02:45 +02:00
Narek Zakarian
5585461280 Add "Type" attribute to checkout button 2022-03-15 18:02:35 +04:00