Alex P
ebe1e84907
Fix and refactor PayNow checkout UI too
...
Inherit PayNowBootstrap from CheckoutBootstap, they are almost the same
2021-11-12 18:27:47 +02:00
Alex P
9c7859bf35
Use MutationObserver to detect order button visibility changes
...
Such as for the old PayPal plugin,
which shows it on click + with some animation,
or Conditional WooCommerce Checkout Field,
which shows the button after loading some data
2021-11-12 18:26:42 +02:00
Alex P
3dc9b48e1b
Hide button with !important to override !important from some themes
2021-11-11 18:00:31 +02:00
Alex P
9ad48d5f13
Optimize checkout elements hiding
...
Remove duplicated calls like hidden -> show() -> hide() during some updates
and make code more clear
2021-11-11 15:20:21 +02:00
Alex P
c2b77b3cff
Unselect saved card only on page load
...
If we do it on every form update/method switch,
then e.g. if the user first selected a card,
but then entered/edited the address,
they may lose the selection
(and maybe it could cause issues in other cases,
if something else triggers update_checkout)
2021-11-11 15:19:09 +02:00
Alex P
2e59248bf9
Extract saved card selection check
2021-11-10 17:10:07 +02:00
Alex P
9624c85a6c
Extract currentPaymentMethod
2021-11-10 16:27:00 +02:00
Alex P
51517f1196
Extract selector to a variable
2021-11-10 12:56:53 +02:00
dinamiko
85b8179307
Add space after if
2021-11-04 15:48:19 +01:00
dinamiko
0a81b27f41
Enforce vault if contains subscription
2021-10-21 14:41:44 +02:00
dinamiko
1b1c6c4a60
Do not display generic error on hosted fields submit. Fixes #263 .
2021-09-20 11:16:49 +02:00
dinamiko
909699886c
Check if hosted fields instance exist before setting attribute
2021-09-20 11:14:35 +02:00
dinamiko
6191541674
Disable hosted fields when selecting saved credit card
2021-09-16 12:29:30 +02:00
dinamiko
6896265ca3
Add -disabled
to css class name
2021-09-14 11:44:49 +02:00
dinamiko
da7450ccdf
Dispatch hosted fields loaded event
2021-09-14 11:24:27 +02:00
dinamiko
ab32a20f68
Add and remove class for css opacity
2021-09-14 09:28:48 +02:00
dinamiko
12f1a2e40b
Disable credit card fields when selecting saved payment
2021-09-09 17:28:16 +02:00
dinamiko
31260b61f9
Fix merge conflicts
2021-09-08 15:22:28 +02:00
Alex P
a41f678ac6
Subscribe to form button click only once
2021-09-07 17:58:17 +03:00
Alex P
10d7574e22
Teardown hosted fields on re-render
2021-09-07 17:56:16 +03:00
Alex P
b988e08c66
Add "No 3DS" option
2021-08-23 12:29:43 +03:00
Alex P
0553ea62bf
Send 3ds contingency in js
2021-08-20 17:47:32 +03:00
dinamiko
94aead33ba
Merge branch 'trunk' into PCP-114-sca-when-required
2021-08-03 15:20:23 +02:00
Emili Castells
66aa4ab841
Merge pull request #193 from woocommerce/PCP-166-acdc-checkout-error-card-details
...
ACDC checkout error: "Card Details not valid"; but payment completes
2021-07-16 09:09:27 +02:00
dinamiko
f2ac9045bb
Move hosted fields validation into validityChange
event
2021-07-15 17:27:19 +02:00
dinamiko
a9922f36b1
Do not rerender hosted fields on each checkout form field update
2021-07-13 11:55:59 +02:00
dinamiko
fad6c27ae4
Fix typo in variable name
2021-07-13 09:43:30 +02:00
dinamiko
ab6f8a3c99
Check single product and mini card setting for displaying PayPal buttons
2021-07-12 17:16:26 +02:00
Kirill Braslavsky
a80d81804b
set 3DS contingencies to 'SCA_WHEN_REQUIRED'
2021-06-16 09:48:33 +03:00
dinamiko
076a124ec7
Validate checkout form before creating PayPal order when creating account on checkout
2021-06-15 12:48:01 +02:00
Emili Castells
437a6654c5
Merge pull request #146 from woocommerce/fix/PCP-130-fix-cc-fields
...
Fix/pcp 130 fix cc fields
2021-05-17 11:09:14 +02:00
Kirill Braslavsky
74d5337bc9
use yy format instead of yyyy for card details
2021-05-14 14:27:41 +03:00
Jorge A. Torres
ad921ef172
Set data-client-token
regardless of user being logged-in
2021-04-30 14:42:04 -05:00
dinamiko
ea23200de6
Consolidate vaulting settings in one single one
2021-04-23 10:33:28 +02:00
dinamiko
ab5dc13ad7
Do not switch place order button on change payment method page
2021-04-21 16:54:24 +02:00
dinamiko
7f553087c6
Display error message when order is not created, do not handle place order button display when acdc is not enabled
2021-04-20 14:27:37 +02:00
dinamiko
61aa53c188
Fix place order button display for saved credit cards
2021-04-20 11:56:27 +02:00
dinamiko
bf0d2b9b4e
Unselect saved credit cards selector when switching payment gateways
2021-04-14 15:30:24 +02:00
dinamiko
6149d79d19
Do not reuse client token but generate a new one each time it renders on the page
2021-04-14 12:35:40 +02:00
dinamiko
34b624905d
Fix merge conflicts with trunk
2021-03-31 11:22:01 +02:00
dinamiko
fd7dfaf13b
Allow credit card gateway to use saved credit cards
2021-03-25 16:11:45 +01:00
Emili Castells
7732d1d3eb
Merge pull request #136 from woocommerce/PCP-100-show-wc-message-on-account-creating-error
...
Show WC message on account creating error
2021-03-16 16:55:32 +01:00
Kirill Braslavsky
661c9f3dfa
Merge branch 'trunk' into PCP-100-show-wc-message-on-account-creating-error
2021-03-11 15:58:52 +02:00
Emili Castells
f7bd7de3c8
Merge branch 'trunk' into PCP-66-unblock-ui-on-submit-checkout-error
2021-03-11 12:26:32 +01:00
dinamiko
ed3a91f333
Add client-side vaulting for subscription renewals
2021-03-10 12:10:12 +01:00
Kirill Braslavsky
45dd4a91d9
handle messages from WC as HTML
2021-03-02 20:10:05 +02:00
Kirill Braslavsky
223aa6493d
display both WC and own messages
2021-03-02 19:41:18 +02:00
Kirill Braslavsky
a256cc6d53
cache messages element
2021-03-02 19:40:55 +02:00
Kirill Braslavsky
750d5912b0
apply messages as elements of unordered list
2021-03-02 18:37:34 +02:00
Kirill Braslavsky
1e7c2df193
Revert "fix getting error message on order creating fail"
...
This reverts commit 89a61b33bb
.
2021-03-02 17:17:27 +02:00