Commit graph

1694 commits

Author SHA1 Message Date
dinamiko
162a0886b7 Use innerHTML to clear element inner content 2021-11-25 10:36:56 +01:00
dinamiko
0ac3dae104 Fix error handler clear messages 2021-11-24 17:13:31 +01:00
Emili Castells
2638486331
Merge pull request #373 from woocommerce/pcp-333-fix-tax-mismatch
Use subtotal_tax instead of adding taxes ourselves
2021-11-23 12:33:46 +01:00
Emili Castells
f4e4e942a1
Merge pull request #365 from woocommerce/pcp-401-custom-order-id
Use order ID instead of "number" for PayPal custom field
2021-11-23 12:03:02 +01:00
Alex P
6e6b4c4b40 Merge branch 'trunk' into pcp-401-custom-order-id 2021-11-23 12:51:26 +02:00
Emili Castells
035cbe5957
Merge pull request #361 from woocommerce/pcp-125-fix-duplicated-button
Fix duplicated button and saved cards in Pay Now
2021-11-23 11:07:21 +01:00
Emili Castells
3e21c4d7d7
Merge pull request #359 from woocommerce/PCP-419-do-not-display-saved-payments-on
Do not pass `customer_id` if vaulting is disabled
2021-11-23 11:06:26 +01:00
Danae Millan
9903d39702
Merge pull request #376 from woocommerce/release/1.6.2
Release 1.6.2
2021-11-22 19:24:19 -03:00
Danae Millan
b36bbc4e47 Update 1.6.2 release date in changelog 2021-11-22 19:12:24 -03:00
Emili Castells
5469a9352f
Merge pull request #371 from woocommerce/PCP-423-when-paying-for-a-subscrition-an
Add retry counter meta to order to avoid duplicate invoice error on c…
2021-11-22 11:25:22 +01:00
Emili Castells
016d72683a
Merge pull request #374 from woocommerce/PCP-425-save-your-credit-card-shouldnt-b
Do not display save credit card if subscription in the cart
2021-11-22 11:24:39 +01:00
dinamiko
3d2283e5f7 Update changelog 2021-11-22 10:48:58 +01:00
dinamiko
64e166b51c Add variable subscription to cart contains subscription method 2021-11-22 10:11:04 +01:00
Alex P
ff6f821fdf Add type 2021-11-19 12:44:06 +02:00
dinamiko
199d40e2d5 Do not display save credit card if subscription in the cart 2021-11-19 11:06:16 +01:00
Alex P
a6a25232e3 Use subtotal_tax instead of adding taxes ourselves 2021-11-19 10:29:44 +02:00
dinamiko
626f4804cb Remove unused stuff on test 2021-11-18 14:49:42 +01:00
dinamiko
c072e8550a Add retry counter meta to order to avoid duplicate invoice error on consequent tries 2021-11-18 14:45:34 +01:00
Alex P
6d905d01c8 Remove prefix from custom id 2021-11-16 17:28:11 +02:00
Alex P
f23df0b91c Make sanitize_custom_id more correct 2021-11-16 17:28:11 +02:00
Alex P
3b98d8300b Use order ID instead of "number" for PayPal custom field
Otherwise we cannot find the order in webhook handlers
if order number is not order ID
2021-11-16 12:06:38 +02:00
Alex P
326775371f Merge branch 'trunk' into pcp-125-fix-duplicated-button 2021-11-15 17:59:38 +02:00
Emili Castells
355bac28f9
Merge pull request #364 from woocommerce/pcp-421-fix-ppec-error
Check that PPEC settings is not null
2021-11-15 15:47:23 +01:00
Alex P
01942b6699 Check that PPEC settings is not null 2021-11-15 16:12:54 +02:00
dinamiko
fe962c8cf3 Do not display PayPal payments page if vault option is disabled 2021-11-15 11:50:34 +01:00
dinamiko
4e4fc38077 Improve conditional format 2021-11-15 09:53:50 +01:00
Alex P
1f8b449e38 Fix change payment check to not conflict with Pay Now 2021-11-12 18:29:30 +02:00
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
dinamiko
7e575eef5d Fix phpunit tests 2021-11-12 17:10:00 +01:00
dinamiko
6609759c9d Do not pass client_id if vaulting is disabled 2021-11-12 16:55:55 +01:00
Alex P
3dc9b48e1b Hide button with !important to override !important from some themes 2021-11-11 18:00:31 +02:00
Alex P
c97dc9530b Add float: right to dcc order button like in WC styles 2021-11-11 17:58:08 +02:00
Alex P
b9ae2483ad Add CSS class to dcc order button 2021-11-11 17:57:23 +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
Emili Castells
d31b3719e3
Merge pull request #355 from woocommerce/release/1.6.2
Release 1.6.2
2021-11-09 16:52:03 +01:00
dinamiko
df316afbe4 Create release branch 2021-11-09 16:46:52 +01:00
Emili Castells
688a94cb28
Merge pull request #352 from woocommerce/PCP-371-payment-not-possible-in-pay-for-
Check if terms checkbox is available
2021-11-09 09:27:47 +01:00
Emili Castells
1a5e5d88fc
Merge pull request #351 from woocommerce/PCP-390-paypal-payments-page-empty-after
Add option for flushing rewrite rules
2021-11-08 15:14:29 +01:00
dinamiko
902d6bb0cf Check if terms checkbox is available 2021-11-08 15:09:22 +01:00
Emili Castells
cb8c12383c
Merge pull request #348 from woocommerce/ppcp-376-fix-logging-error
Handle WP_Error when logging response
2021-11-08 11:49:09 +01:00
dinamiko
1f9a0f8a39 Rename version option 2021-11-08 11:43:44 +01:00
dinamiko
5bb7c80622 Add stubs for psalm 2021-11-08 11:37:18 +01:00
dinamiko
dddc8d6cf6 Add init inside migrate action 2021-11-08 11:23:49 +01:00
dinamiko
2c8d0fcf8a Add upgrading event on plugins loaded 2021-11-08 11:07:37 +01:00
Alex P
a341d427fc Handle WP_Error when logging response 2021-11-08 11:08:09 +02:00