Alex P
f811ea6a99
Do not complete non-checkout button orders via webhooks
2023-07-17 10:40:21 +03: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
Emili Castells Guasch
96e434d4b0
Merge trunk
2023-07-12 11:14:23 +02:00
Alex P
ced0828c2d
Merge branch 'trunk' into PCP-1762-cart-paylater-amount
2023-07-11 10:44:22 +03: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
c9bf899b75
Remove not working payment_method in root
2023-07-05 09:57:38 +03: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
Alex P
4a74911f6d
Fix funding source check
2023-07-04 16:43:37 +03: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
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
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
7b04290eac
Add support for WooCommerce Bookings on single product page
2023-06-30 10:00:44 +01:00
Emili Castells Guasch
c8e40b56c4
Add support for variable subscriptions (WIP)
2023-06-28 17:17:22 +02:00
Pedro Silva
f517ac4719
Add checkout detection in product page
2023-06-28 15:15:49 +01:00
Pedro Silva
4c33f0bee3
Add woocommerce-one-page-checkout detection in product page
2023-06-28 11:22:11 +01:00
Alex P
2b566fcf44
Merge branch 'trunk' into PCP-860-apm
2023-06-27 15:54:06 +03:00
Emili Castells
ad30fea667
Merge pull request #1363 from woocommerce/PCP-1544-pay-order-currency
...
Use order currency instead of shop currency on order-pay page
2023-06-27 11:36:47 +02:00
Alex P
b6a85f0d13
Update Pay Later amount on the cart page when cart total changes
2023-06-16 11:39:20 +03:00
Alex P
46ea7621d3
Create wc order in approval webhook if missing
2023-06-14 12:44:06 +03:00
Alex P
e29ef9c7d6
Use continuation mode when APM does not redirect back
2023-06-14 08:59:30 +03:00
Alex P
8a6437b558
Add buyer-country for guests too
2023-06-13 12:31:59 +03:00
Alex P
8979c9e605
Stop searching for prefix in custom IDs
...
we are not creating such IDs for 2 years already
2023-06-08 16:00:21 +03:00
Emili Castells Guasch
5082a0d17b
Do not render PayPal subscription button if no plan is connected
2023-06-07 12:50:18 +02:00
Alex P
729251495f
Handle empty acdc fields
2023-06-06 15:33:13 +03:00
Alex P
d2a5ecf3b8
Merge branch 'trunk' into PCP-1544-pay-order-currency
2023-06-06 15:31:46 +03:00
Alex P
c684e461ee
Fix response
2023-05-31 16:19:25 +03:00
Alex P
bee2a8d5ba
Do not send whole order in create order response
2023-05-31 16:18:34 +03:00
Alex P
508fe0ee48
Do not sent order in approve response
2023-05-31 16:15:19 +03:00
Emili Castells Guasch
e173f39e3c
Add vault true when subscription in cart
2023-05-18 16:46:25 +02:00
Emili Castells Guasch
c64d174817
Fix get_cart_contents
null error
2023-05-18 10:42:18 +02:00
Emili Castells Guasch
12c8edf7bc
Remove unused services
2023-05-17 11:29:29 +02:00
Emili Castells Guasch
077c23d7f1
Fix phpcs
2023-05-16 15:15:35 +02:00
Emili Castells Guasch
3c0e807758
Fix merge conflicts
2023-05-16 12:44:14 +02:00
Emili Castells Guasch
e5fb9b0b9d
Add subscriptions api feature flag (WIP)
2023-05-15 16:18:11 +02:00
Alex P
b7ef769aa7
Use cart/checkout styles for blocks
2023-05-10 11:26:45 +03:00
Alex P
54d8a9b5a9
Use order currency instead of shop currency on order-pay page
2023-05-10 08:05:44 +03:00
Emili Castells Guasch
48db0851ce
Fix phpcs (WIP)
2023-05-02 14:28:36 +02:00
Emili Castells Guasch
eca8a3b09c
Fix psalm
2023-05-02 12:35:46 +02:00
Alex P
e2e2897714
Allow only paylater, venmo apm in express block
2023-04-27 15:45:39 +03:00
Alex P
68758500fa
Fix pay-order page context
2023-04-27 13:06:02 +03:00
Alex P
9d638a57e3
Show shipping methods in paypal if express without review
2023-04-25 15:06:24 +03:00
Alex P
8efa0e6da3
Fix pay now button
...
not sure if the action parameter in order creation request affects anything, but the docs say that it should match the js sdk commit parameter
2023-04-24 08:15:22 +03:00
Alex P
8f3e9c4554
Disable card button for blocks
...
not working well with express, cannot fill fields
2023-04-21 09:46:28 +03:00