Alex P
4ca9639fb1
Add CSS file for non-DCC rules
2022-10-20 13:13:42 +03:00
Alex P
57af25a197
Hide order button via class
2022-10-20 09:24:24 +03:00
Emili Castells
7f566c6294
Merge pull request #844 from woocommerce/pcp-870-fix-browser-support
...
Improve old browsers support
2022-09-14 15:51:20 +02:00
Alex P
a766459ce1
Add FormData polyfil
...
Safari 10, Chrome 49, Firefox 43, ...
2022-09-12 11:42:58 +03:00
Alex P
86bd3886f0
Use appendChild for better compatibility
2022-09-12 10:23:53 +03:00
Alex P
daad118148
Fix babel in other modules
2022-09-12 10:22:02 +03:00
Alex P
23cb96e6f9
Explicitly send cookies in fetch
...
Not sent by default in old browsers
2022-09-09 16:28:58 +03:00
Alex P
5be88678e7
Use appendChild for better compatibility
...
For some reason Babel does not polyfill it
2022-09-09 11:20:23 +03:00
Alex P
53d4648b4f
Use babel correctly to support old browsers
2022-09-09 10:29:14 +03:00
Alex P
a81a2ef7d1
Fix source maps in production
...
File source was huge because of that
2022-09-09 10:28:26 +03:00
Narek Zakarian
13ac2a3551
Refactor to remove second order creation part
2022-09-07 19:28:16 +04:00
Alex P
2ea35d6dc9
Remove unneeded babel package, update packages
...
The spread operator package seems to be old and included by default in Babel 7.
And it probably was not used properly anyway because there was huge wall of warnings about it when building js.
2022-09-06 10:19:13 +03:00
Alex P
0b4e42a30f
Refactor js error message creation, call jQuery animation only once
2022-08-10 10:09:06 +03:00
Alex P
3b33ffe903
Fix style merging
2022-08-09 09:44:26 +03:00
Emili Castells
95a4935294
Merge pull request #768 from woocommerce/fix-cart-buttons
...
Fallback to child nodes check in isAlreadyRendered when possible (851)
2022-08-08 09:06:54 +02:00
Alex P
65b435135b
Revert removal of gateway status check
...
Looks like it was accidentally removed after #704 merge conflict.
Without it we always render the hidden area for separate card gateway, so the check in JS fails and we always render all standard buttons separately in checkout, which may result in wrong style and other issues.
2022-08-05 17:14:09 +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
Alex Pantechovskis
36874966b1
Merge pull request #704 from woocommerce/PCP-677-smart-button-not-visible-on-single-product-when-subscription-in-cart
...
Fix button_renderer logic & the behavior for single products
2022-07-29 17:29:42 +03:00
Alex Pantechovskis
061ca9e7fd
Merge pull request #752 from woocommerce/pcp-831-fix-free-trial-card-button
...
Do not remove card funding source for free trials if card button enabled
2022-07-28 17:24:36 +03:00
Narek Zakarian
6b8014e5b1
Fix the JS file
2022-07-28 16:33:24 +04:00
Narek Zakarian
a1454dbfd7
Fix the script loading check.
2022-07-28 15:51:00 +04:00
Narek Zakarian
de21866712
Fix the script loading check.
2022-07-28 15:05:35 +04:00
Alex P
615e96c409
Do not remove card funding source for free trials if card button enabled
2022-07-27 16:26:27 +03:00
Narek Zakarian
65caa42872
Fix PHPCS problems
2022-07-26 19:11:07 +04:00
Narek Zakarian
35849315c4
Merge
2022-07-26 19:04:58 +04:00
Narek Zakarian
31b5ca90e8
Merge remote-tracking branch 'origin/trunk' into PCP-677-smart-button-not-visible-on-single-product-when-subscription-in-cart
2022-07-26 18:22:41 +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
73dc768955
Merge branch 'trunk' into pcp-697-separate-gateway
2022-07-25 11:08:43 +03:00
Alex P
8212605926
Make js validation error message like WC message
2022-07-22 11:48:53 +03:00
dinamiko
1acd986083
Merge branch 'trunk' into PCP-726-add-oxxo-apm-alternative-payment
2022-07-21 15:16:39 +02: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
dependabot[bot]
e2e01220e8
Bump terser from 5.9.0 to 5.14.2 in /modules/ppcp-button
...
Bumps [terser](https://github.com/terser/terser ) from 5.9.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases )
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md )
- [Commits](https://github.com/terser/terser/commits )
---
updated-dependencies:
- dependency-name: terser
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 07:51:24 +00: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
429260ca34
Do not disable card funding source if card gateway enabled
2022-07-19 11:14:53 +03:00
Alex P
619e9d2552
Change address handling for card button
...
Make the name field to always appear and send at least one address
2022-07-19 09:24: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
Emili Castells
37458baed5
Merge pull request #692 from woocommerce/PCP-199-pay-later-messaging-only-display-with-smart-buttons
...
Fix messaging display when the buttons are disabled.
2022-07-08 10:32:48 +02:00
Alex P
9ab091b945
Fix shipping preference for vaulted card button
2022-07-05 17:30:12 +03:00
Alex P
fff2570124
Refactor shipping_preference
...
Extract its determination to a separate class, also remove useless CartRepository and use single PU to avoid confusion.
2022-07-05 14:37:04 +03:00
Narek Zakarian
b15c03d418
Fix the intent value for single products.
2022-07-04 17:30:29 +04: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