Commit graph

28 commits

Author SHA1 Message Date
Emili Castells Guasch
69da3f78ed Override hosted fields configurtation when PayPal subscriptions is enabled 2023-05-09 11:42:31 +02:00
emilicastells
72eb713fd4
Add logic to enable/disable PayPal subscriptions feature 2023-01-16 12:37:16 +01:00
emilicastells
7774a5e8b0
Integrate PayPal Subscriptions (WIP) 2023-01-05 14:53:23 +01:00
Alex P
c99418d0bc Remove unused imports 2022-10-27 12:14:39 +03:00
Alex P
9020c9b797 Use the same errorHandler
Otherwise old messages may get stuck
2022-10-27 09:09:45 +03:00
Alex P
57af25a197 Hide order button via class 2022-10-20 09:24:24 +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
1c0df35f53 Handle free trial for paypal
Vault account without payment
2022-04-12 14:59:07 +03:00
Alex P
7050c8231e Refactor selected payment gateway checking 2022-03-15 09:16:37 +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
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
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
fd7dfaf13b Allow credit card gateway to use saved credit cards 2021-03-25 16:11:45 +01:00
David Remer
4322386c85 activate spinner when credit card button is clicked 2020-09-28 14:05:02 +03:00
David Remer
f8e82bdfaf move module.local to module 2020-09-01 14:21:58 +03:00
Renamed from modules.local/ppcp-button/resources/js/modules/ContextBootstrap/CheckoutBootstap.js (Browse further)