Alex P
0b4e42a30f
Refactor js error message creation, call jQuery animation only once
2022-08-10 10:09:06 +03:00
Alex P
a893a1de8e
Fallback to child nodes check in isAlreadyRendered when possible
...
Otherwise it breaks at least in cart when updating shipping.
2022-08-04 10:39:27 +03:00
Narek Zakarian
6b8014e5b1
Fix the JS file
2022-07-28 16:33:24 +04:00
Alex P
1049fda586
Merge branch 'trunk' into PCP-726-add-oxxo-apm-alternative-payment
2022-07-26 16:59:27 +03:00
Alex P
e55e2d9c81
Merge branch 'trunk' into pcp-697-separate-gateway
2022-07-26 15:28:27 +03:00
Alex P
8212605926
Make js validation error message like WC message
2022-07-22 11:48:53 +03:00
Alex P
88838ce5ca
Add fields to the basic js validation error message
2022-07-21 10:13:59 +03:00
Alex P
0c17c6b1de
Allow to choose one of 3 card billing data handling modes
...
also handle it in one place, no need to mess with payer parsing and JS
2022-07-20 17:28:55 +03:00
Alex P
1b1091051d
Render separately only if needed
...
to avoid breaking things. e.g. horizontal layout
2022-07-19 20:52:04 +03:00
Alex P
dc0bc3ba0a
Render all buttons separately to allow hiding sources in paypal gateway
2022-07-19 14:04:19 +03:00
Alex P
d4e8bd453c
Add card button gateway
2022-07-19 09:20:26 +03:00
Alex P
0ff11054f8
Refactor button renderer settings handling
2022-07-18 16:27:06 +03:00
Alex P
8c77258828
Add option for sending billing data
2022-07-18 16:24:53 +03:00
dinamiko
d1c4850c4d
Do not render custom oxxo button in checkout
2022-07-15 16:05:13 +02:00
dinamiko
07da639f9d
Add oxxo button to show hide gateway visibility
2022-07-14 12:27:53 +02:00
Emili Castells
b84d6b7f25
Merge pull request #686 from woocommerce/PCP-260-card-type-detection-not-working
...
Fix credit card detection.
2022-07-08 10:36:13 +02:00
Emili Castells
a746548a65
Merge pull request #691 from woocommerce/PCP-624-pay-later-messaging-displayed-when-variation-is-not-selected
...
Pay later messaging displayed when variation is not selected
2022-07-08 10:35:22 +02:00
Alex P
7f42fe1882
Show basic validation error only for required fields
...
Otherwise it may trigger on some sites when the field is no longer required but still marked as invalid, e.g. after switching to a country without required state
2022-07-01 11:43:11 +03:00
Alex P
be9c624264
Add filter allowing to disable the basic client-side validation
...
In case some conflicts occur.
2022-06-28 12:09:18 +03:00
Narek Zakarian
2fded7dd69
Merge branch 'trunk' into PCP-624-pay-later-messaging-displayed-when-variation-is-not-selected
...
# Conflicts:
# modules/ppcp-button/resources/js/modules/ContextBootstrap/SingleProductBootstap.js
2022-06-23 19:24:30 +04:00
Alex P
ba432b9705
Fix basic validation
...
Use :visible in both selectors, otherwise it may result in an unwanted error if something triggered validation for hidden fields.
2022-06-20 18:27:04 +03:00
Narek Zakarian
9da3f112bc
Add the hiding messages callback to single product handler
2022-06-20 15:28:07 +04:00
Narek Zakarian
4639a385d6
Fix credit card detection.
2022-06-17 17:19:03 +04: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
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