Commit graph

148 commits

Author SHA1 Message Date
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
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
Alex P
bb86f1b8e6 Throw on createOrder failure to stop PayPal from attempting to continue 2022-06-08 16:16:13 +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
Alex P
993e109c49 Add basic input validation before opening PayPal popup 2022-06-03 16:27:53 +03:00
Narek Zakarian
6effc222f2 Do not render messages when buttons are not rendered. 2022-06-01 15:43:49 +04:00
Narek Zakarian
b9cdc56ad6 Convert the "," separator into "." before checking the price amount. 2022-05-24 18:35:39 +04: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
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
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
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
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
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
87aed70199 Improve spinner before redirect 2022-04-12 18:40:24 +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
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
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
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
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
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
Alex P
f6944a6208 Hide "Place Order" button on page load when PayPal selected 2022-03-15 09:28:51 +02:00
Alex P
7050c8231e Refactor selected payment gateway checking 2022-03-15 09:16:37 +02:00
Narek Zakarian
33ad9f6d91 Check the price amount with JS to fix variable products 2022-03-02 12:49:21 +04:00
Emili Castells
3afb73d34c
Merge pull request #519 from woocommerce/PCP-554-paypal-options-available-on-mini
Do not display buttons in minicart if subscription in the cart and va…
2022-03-01 11:11:44 +01:00
dinamiko
21013adbca Do not display buttons in minicart if subscription in the cart and vaulting disabled 2022-02-28 12:56:44 +01:00
dinamiko
89392e43bd Display error message for when error on hosted fields approve payment 2022-02-28 10:06:05 +01:00
dinamiko
635838c636 Use hosted fields button wrapper instead of checkout form to add the attribute 2022-02-21 17:11:56 +01:00
dinamiko
ef99e53d6a Use an attribute to ensure handler added 2022-02-21 16:12:09 +01:00
dinamiko
0def95d4cd Set formSubmissionSubscribed to false on each ACDC gateway display 2022-02-21 12:21:05 +01:00
dinamiko
f9157ff1ba Clear previous message before display current 2022-02-02 11:40:54 +01:00
dinamiko
238fa31cf7 Display multiple details 2022-01-31 15:04:28 +01:00
dinamiko
b98f59b4ed Add error details for order creation 2022-01-31 12:17:23 +01:00
dinamiko
2f78bab9ca Only display buttons in checkout if guest with subscription 2022-01-17 14:35:25 +01:00
Emili Castells
d5823c1254
Merge pull request #398 from woocommerce/pcp-400-show-funding-source
Show "Venmo" instead of "PayPal" when using its' button
2021-12-14 16:03:01 +01:00
Emili Castells
7109f969f6
Merge pull request #401 from woocommerce/PCP-424-reopened-error-messages-are-not-cleared
Clear error messages on approve
2021-12-13 12:07:31 +01:00