Commit graph

2626 commits

Author SHA1 Message Date
Pedro Silva
e207a11b7e
Merge branch 'trunk' into PCP-1389-pay-later-button-and-message-get-hidden-when-product-cart-checkout-value-is-outside-of-range 2023-07-18 15:59:47 +01:00
Pedro Silva
76804c2582
Add simulate cart endpoint 2023-07-18 15:58:15 +01:00
Emili Castells
0672ca4950
Merge pull request #1509 from woocommerce/PCP-468-validate-merchant-id-field-format-when-saving-settings
validate Merchant ID field format when saving settings (468)
2023-07-18 15:43:52 +02:00
Emili Castells
5361d4b3b2
Merge pull request #1489 from woocommerce/PCP-585-instant-payments
Send payee_preferred correctly for instant payments
2023-07-18 15:43:11 +02:00
Emili Castells
75f73ea090
Merge pull request #1427 from woocommerce/feat/PCP-1709_soft_descriptor
Include soft descriptor for card's activity
2023-07-18 15:40:04 +02:00
Emili Castells
a29e597ff9
Merge pull request #1441 from woocommerce/PCP-1762-cart-paylater-amount
Update Pay Later amount on the cart page and checkout when total changes
2023-07-18 15:39:35 +02:00
Emili Castells
0aac0cf4e5
Merge pull request #1490 from woocommerce/PCP-1842-auto-disabled-acdc-vaulting-after-updating-to-2-1-0
Auto-disabled ACDC vaulting after updating to 2.1.0 (1842)
2023-07-18 15:38:56 +02:00
Emili Castells
a58900f1f0
Merge pull request #1507 from woocommerce/PCP-1846-log-subscription-mode-configuration-in-system-report
log Subscription Mode configuration in system report (1846)
2023-07-18 15:38:28 +02:00
Emili Castells
24a40a283c
Merge pull request #1510 from woocommerce/PCP-1873-complex-form-fields
Handle complex form fields when submitting checkout form
2023-07-18 15:37:57 +02:00
Emili Castells
9d906a1f4b
Merge pull request #1478 from woocommerce/PCP-895-buttons-not-working-on-single-product-page-for-woo-commerce-bookings-product
Buttons not working on single product page for WooCommerce Bookings product (895)
2023-07-18 15:36:00 +02:00
Emili Castells Guasch
b066fc7ccf Add subscription support for variable subscriptions 2023-07-17 15:13:25 +02:00
Pedro Silva
cc97f84acb
Merge branch 'trunk' into PCP-1389-pay-later-button-and-message-get-hidden-when-product-cart-checkout-value-is-outside-of-range 2023-07-17 11:19:55 +01:00
Emili Castells Guasch
92a59346a7 Add subscription fields for variable subscription (WIP) 2023-07-17 11:49:51 +02:00
Alex P
f811ea6a99
Do not complete non-checkout button orders via webhooks 2023-07-17 10:40:21 +03:00
Emili Castells Guasch
0487593b99 Merge branch 'trunk' into PCP-991-v2-detach-vaulting-from-wc-subscriptions-support 2023-07-14 12:16:04 +02:00
Emili Castells
40371cbf67
Merge pull request #1502 from woocommerce/PCP-1753-onboarding-from-connection-page-with-csrf-paramter-manipulates-email-and-merchant-id-fields
Onboarding from connection page with CSRF paramter manipulates email and merchant id fields (1753)
2023-07-14 11:50:42 +02:00
Pedro Silva
1df151fd49
Remove duplicate is_pay_later_filter_enabled_for_location condition check 2023-07-13 16:10:59 +01:00
Emili Castells Guasch
59afa81160 Introduce paypal-js loading wrapper to be able to reload script 2023-07-13 16:22:57 +02:00
Alex P
6694c79617
Refactor form usage 2023-07-13 14:44:27 +03:00
Alex P
639e8409c8
Handle complex form fields when submitting checkout form
Our current way of handling the checkout form via ajax does not match the WC behavior which submits them in urlencoded request instead of JSON. When it is submitted as JSON object PHP does not parse it for $_POST etc., and we do not get its handling of arrays, breaking some plugin.
Now submitting the form as an urlencoded string inside JSON and parsing via `parse_str` which seems to handle it the same as $_POST.
The parsing is handled in `RequestData` to avoid duplicating it in multiple places and to keep our weird sanitization here. Not sure if it's a good idea to sanitize so early, but for now keeping it like this to avoid major refactoring or introducing new vulnerabilities.
2023-07-13 14:43:14 +03:00
Pedro Silva
d71e09bd09
Add woocommerce_paypal_payments_buttons_paylater_disabled and woocommerce_paypal_payments_product_buttons_paylater_disabled filters 2023-07-13 11:59:31 +01:00
Pedro Silva
35fbe42733
Refactor WooCommerce\PayPalCommerce\Onboarding\Exception\RuntimeException to \RuntimeException
Refactor to use add_query_arg in append_onboarding_token
2023-07-12 14:57:57 +01:00
Emili Castells Guasch
96e434d4b0 Merge trunk 2023-07-12 11:14:23 +02:00
Emili Castells
81f6340897
Merge pull request #1504 from woocommerce/PCP-1836-blocks
Improve blocks
2023-07-12 09:44:16 +02:00
Pedro Silva
1655a7aec9
Fix lint 2023-07-12 08:37:26 +01:00
Pedro Silva
7cba0edebf
Revert ppcp-text-input settings fields to text and add autocomplete="off" 2023-07-12 08:31:55 +01:00
Pedro Silva
512150a889
Add format validation for Merchant ID field 2023-07-11 18:25:37 +01:00
Pedro Silva
d0877d9709
Fix subscriptions mode status text when mode is 'disable_paypal_subscriptions' 2023-07-11 15:53:47 +01:00
Pedro Silva
aa2889472d
Add subscriptions mode to WooCommerce status page. 2023-07-11 15:47:45 +01:00
Alex P
395102ef26
Update Pay Later amount in checkout when cart total changes 2023-07-11 16:52:46 +03:00
Emili Castells Guasch
3dc6d3622f Fix phpcs 2023-07-11 14:24:40 +02:00
Emili Castells Guasch
ab1880f0da Add parent order previous transaction id to subscription 2023-07-11 12:44:30 +02:00
Emili Castells Guasch
56d16a5d8a Add previous transaction to parent order (WIP) 2023-07-11 11:19:50 +02:00
Alex P
67ad49b8de
Merge branch 'trunk' into PCP-1762-cart-paylater-amount 2023-07-11 11:41:02 +03:00
Alex P
f67db5c524
Check that event handler is not null
It is passed as null in 5a0b0b41a9/modules/ppcp-wc-gateway/resources/js/gateway-settings.js (L85)
2023-07-11 11:31:34 +03:00
Alex P
ced0828c2d
Merge branch 'trunk' into PCP-1762-cart-paylater-amount 2023-07-11 10:44:22 +03:00
Alex P
d83eace9b8
Show buttons in block editing 2023-07-11 09:15:36 +03:00
Alex P
9802495c8c
Improve continuation mode label 2023-07-11 09:15:02 +03:00
Emili Castells Guasch
518651b6a9 Add previous_transaction_reference into subscription order meta 2023-07-10 17:37:20 +02:00
Emili Castells Guasch
38bf05577e Move SCA payment indicator from application_context to payment_source 2023-07-10 16:15:00 +02:00
Emili Castells Guasch
08a2b15fcb Log order data on order does not contain intent error 2023-07-10 12:32:31 +02:00
Pedro Silva
25282b9514
Fix code review ajustments 2023-07-10 08:53:05 +01:00
Pedro Silva
96eae6c690
Add security to the onboarding return URL. 2023-07-07 18:44:53 +01:00
Emili Castells
65ac741535
Merge pull request #1461 from woocommerce/PCP-1825-prevent-repetitive-token-migration-and-database-overload-after-2-1-0-update
Prevent Repetitive Token Migration and Database Overload After 2.1.0 Update (1825)
2023-07-06 09:26:44 +02:00
Pedro Silva
3b5a4b7f23
Add cart cleanup functionality to single page Bookable products 2023-07-05 17:10:26 +01:00
Emili Castells Guasch
04adf15df2 Update user tokens migration message 2023-07-05 17:04:33 +02:00
Pedro Silva
01717e740a
Add ACDC vault declaring support for subscriptions 2023-07-05 10:48:29 +01:00
Pedro Silva
c00b5906f7
Merge branch 'trunk' into PCP-895-buttons-not-working-on-single-product-page-for-woo-commerce-bookings-product 2023-07-05 09:34:11 +01:00
Emili Castells
17a346cfc9
Merge pull request #1485 from woocommerce/PCP-1788-filter-to-conditionally-block-the-pay-pal-buttons
Filter to conditionally block the PayPal buttons (1788)
2023-07-05 10:15:34 +02:00
Alex P
249439d327
Send payee_preferred 2023-07-05 10:20:28 +03:00