Commit graph

917 commits

Author SHA1 Message Date
Alex P
602e1e59c7 Add non-translated export label to status report 2021-11-25 10:33:54 +02:00
dinamiko
0ac3dae104 Fix error handler clear messages 2021-11-24 17:13:31 +01:00
dinamiko
31f2e65bff Fix typo in element id 2021-11-24 16:10:24 +01:00
dinamiko
1e646fa954 Ensure cardholder name when submit card fields 2021-11-24 16:09:36 +01:00
Alex P
f845acefbe Add webhook status to status report 2021-11-24 11:52:14 +02:00
Alex P
27d71e14c3 Merge branch 'trunk' into pcp-254-improve-status-report 2021-11-23 16:51:47 +02: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
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
Alex P
b8b4766fba Show if PPEC was used in status report 2021-11-22 18:21:01 +02:00
Alex P
195474ad6e Check currency support for status report 2021-11-22 18:20:00 +02: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
dinamiko
64e166b51c Add variable subscription to cart contains subscription method 2021-11-22 10:11:04 +01:00
Alex P
9ba675d1f5 Add logging status to status report 2021-11-19 17:25:47 +02:00
Alex P
77d3a5c19c Refactor Yes/No output 2021-11-19 17:25:08 +02: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
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
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
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
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
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
dinamiko
f746c41a83 Add option for flushing rewrite rules 2021-11-05 14:38:04 +01:00
Emili Castells
984019cb2b
Merge pull request #343 from woocommerce/PCP-305-enable-save-card-for-guest-users
Disable PayPal gateways if subscription product in cart and customer not logged in
2021-11-04 15:58:52 +01:00
dinamiko
85b8179307 Add space after if 2021-11-04 15:48:19 +01:00
dinamiko
02519b7f35 Merge branch 'trunk' of github.com:woocommerce/woocommerce-paypal-payments into PCP-375-order-of-woocommerce-checkout-ac 2021-11-04 12:12:13 +01:00