Commit graph

317 commits

Author SHA1 Message Date
Alex P
2e50e59940 Remove progressive onboarding state 2022-01-31 18:16:25 +02:00
dinamiko
b923df9d52 Revert dcc enabled check 2022-01-21 15:25:17 +01:00
Emili Castells
0fee10931a
Merge pull request #423 from woocommerce/PCP-434-allow-guest-users-to-purchase-su
Add customer id for guest users purchasing subscriptions
2022-01-20 11:18:14 +01:00
dinamiko
2f78bab9ca Only display buttons in checkout if guest with subscription 2022-01-17 14:35:25 +01:00
Alex P
314ba44bb9 Use realpath for __FILE__ when creating url
on some sites __FILE__ contains .. which breaks url creation
2022-01-14 16:35:13 +02:00
Alex P
5591b2806d Fix double slash in asset urls 2022-01-14 16:33:59 +02:00
dinamiko
e6adf38edd Fix merge conflicts 2022-01-11 10:31:47 +01:00
Emili Castells
45a4463e75
Merge pull request #418 from woocommerce/pcp-196-use-wc-translation
Use translation from WC for "Place order" / "Pay for order" buttons
2022-01-10 13:17:47 +01:00
Alex P
5216e155b4 Fix save card label "for" 2022-01-06 15:08:13 +02:00
dinamiko
a8ccd02e77 Revert vault enabled check in render wrapper 2022-01-05 14:31:12 +01:00
dinamiko
96d154a856 Refactoring 2022-01-05 14:12:37 +01:00
dinamiko
08d3dea790 Check if pay for order contains subscription 2022-01-04 11:01:34 +01:00
dinamiko
6d0c821b19 Check if pay for order contains subscription 2022-01-04 10:43:18 +01:00
dinamiko
d69f1b5a9c Add guest customer id (WIP) 2021-12-24 12:37:06 +01:00
dinamiko
ece3ef95d3 Display payment gateways for guest users when subscription in the cart 2021-12-22 16:00:29 +01:00
Alex P
b93d0acfcc Use translation from WC for "Place order" / "Pay for order" 2021-12-21 17:56:27 +02:00
Emili Castells
d5823c1254
Merge pull request #398 from woocommerce/pcp-400-show-funding-source
Show "Venmo" instead of "PayPal" when using its' button
2021-12-14 16:03:01 +01:00
Emili Castells
7109f969f6
Merge pull request #401 from woocommerce/PCP-424-reopened-error-messages-are-not-cleared
Clear error messages on approve
2021-12-13 12:07:31 +01:00
dinamiko
cf88d4ffbc Clear error messages on approve 2021-12-13 10:50:14 +01:00
Alex P
f4a32a01e7 Show "Venmo" instead of "PayPal" when using its' button 2021-12-09 17:29:48 +02:00
Alex P
2e5b0065f9 Fix payer name properties access 2021-12-08 18:42:09 +02:00
Emili Castells
b65200645a
Merge pull request #386 from woocommerce/pcp-367-default-3ds-contingency
Change default 3ds contingency
2021-12-01 11:57:31 +01:00
dinamiko
aa61ab56ca Improve required card holder name error message 2021-11-30 14:23:21 +01:00
dinamiko
26147791ab Remove getting shipping address as fallback for card holder name 2021-11-30 12:34:19 +01:00
dinamiko
cf3ba3f55c Fix phpcs errors 2021-11-30 11:11:02 +01:00
Alex P
ffe32070d0 Extract shop currency, country to services 2021-11-30 10:40:38 +02:00
dinamiko
b3b1237247 Merge branch 'trunk' into PCP-359-customer-details-not-available-i 2021-11-26 15:30:26 +01:00
dinamiko
19b5c2e437 Check shipping name if billing does not exist 2021-11-25 11:59:22 +01:00
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
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
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
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
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
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
dinamiko
902d6bb0cf Check if terms checkbox is available 2021-11-08 15:09:22 +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
dinamiko
78fe636e65 Merge branch 'trunk' into PCP-305-enable-save-card-for-guest-users 2021-11-04 11:01:33 +01:00