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
Alex P
67ad49b8de
Merge branch 'trunk' into PCP-1762-cart-paylater-amount
2023-07-11 11:41:02 +03:00
Emili Castells
c963a79b47
Merge pull request #1505 from woocommerce/fix-renderer
...
Check that event handler is not null
2023-07-11 10:40:12 +02: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
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
5a0b0b41a9
Merge pull request #1493 from woocommerce/release-2.2.0-update-changelog
...
Update 2.2.0 changelog
2023-07-06 13:04:53 +02:00
Emili Castells Guasch
dd0e8a2fdb
Update changelog
2023-07-06 11:34:18 +02:00
Emili Castells
164ad71c6a
Merge pull request #1492 from woocommerce/release/2.2.0
...
Release 2.2.0
2023-07-06 11:17:50 +02:00
Emili Castells Guasch
a0e125841b
Bump 2.2.0 version
2023-07-06 11:01:48 +02: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
Alex P
c9bf899b75
Remove not working payment_method in root
2023-07-05 09:57:38 +03:00
Pedro Silva
a9e56a3ff3
Remove dependency of ACDC Vault with Reference Transaction enabled
2023-07-04 17:53:59 +01:00
Emili Castells Guasch
45c69350e3
Fix skip empty key logic
2023-07-04 17:29:44 +02:00
Emili Castells
1d75e73b56
Merge pull request #1435 from woocommerce/PCP-860-apm
...
Improve handling of APMs when popup is not used or not redirected back to WC
2023-07-04 16:22:39 +02:00
Pedro Silva
f6e625718e
Refactor handleButtonStatus and shouldEnable methods in buttons bootstraps
2023-07-04 14:43:55 +01:00
Alex P
4a74911f6d
Fix funding source check
2023-07-04 16:43:37 +03:00
Alex P
298a72b6c5
Improve error message
2023-07-04 15:32:41 +03:00
Alex P
d20d4dd353
Check order id before requesting order
2023-07-04 15:31:19 +03:00
Emili Castells
79f0d476a6
Merge pull request #1483 from woocommerce/PCP-1856-blocks-flag
...
Make the blocks integration (partial) available without feature flag
2023-07-04 09:59:41 +02:00
Pedro Silva
87665401e5
Change filter names to plural woocommerce_paypal_payments_buttons_disabled and woocommerce_paypal_payments_product_buttons_disabled
2023-07-04 08:29:48 +01:00
Pedro Silva
6b03960de7
Refactor button renderer and filter woocommerce_paypal_payments_<context>_button_disabled
2023-07-03 17:35:01 +01:00
Alex P
3d61aa1ead
Make the blocks integration (partial) available without feature flag
...
The `woocommerce_paypal_payments_blocks_enabled` filter or `PCP_BLOCKS_ENABLED` env var are not used anymore, the blocks can be enabled in the settings without activating this feature flag first.
2023-07-03 17:17:45 +03:00
Emili Castells
5d488fb3aa
Merge pull request #1482 from woocommerce/PCP-1854-revert-elementor-pro-checkout-hook-compatibility
...
Revert Elementor Pro Checkout hook compatibility (1854)
2023-07-03 14:05:10 +02:00
Pedro Silva
5fb72b58dc
Remove hook rewrite filter for woocommerce_review_order_after_submit
2023-07-03 11:46:55 +01:00
Pedro Silva
74f28ca921
Add filter woocommerce_paypal_payments_<context>_button_disabled to disable PayPal buttons on a given context.
2023-07-03 11:40:37 +01:00
Emili Castells
1fd0899149
Merge pull request #1473 from woocommerce/PCP-1816-incompatibility-with-woo-commerce-one-page-checkout-or-similar-use-cases-in-version-2-1-0
...
Incompatibility with WooCommerce One Page Checkout (or similar use cases) in Version 2.1.0 (1816)
2023-07-03 11:55:28 +02:00
Emili Castells
313def09de
Merge pull request #1375 from fitimvata/trunk
...
[Fix] Undefined array key 0 when checking $retry_errors in process_payment method. (1698)
2023-07-03 11:46:35 +02:00
Pedro Silva
cdd4a69bf5
Fix lint
2023-07-03 08:31:27 +01:00
Pedro Silva
e94316aecd
Add filter woocommerce_paypal_payments_product_button_disabled to disable PayPal buttons on single product page.
2023-07-03 08:25:35 +01:00
Pedro Silva
28dd3ba0a2
Add booking test case for ChangeCartEndpointTest::testProducts
2023-06-30 13:56:54 +01:00