Commit graph

610 commits

Author SHA1 Message Date
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
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
c1f97dd625 Fix constructor parameters order 2023-05-16 15:02:27 +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
Emili Castells Guasch
69da3f78ed Override hosted fields configurtation when PayPal subscriptions is enabled 2023-05-09 11:42:31 +02:00
Emili Castells Guasch
69542e37f3 Add subscriptions mode tooltip description 2023-05-08 14:32:55 +02: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
Alex P
6049f8b396
Merge branch 'trunk' into pcp-157-blocks 2023-04-17 17:12:44 +03:00
Emili Castells Guasch
29a21d214f Merge trunk 2023-04-17 14:16:53 +02:00
dependabot[bot]
1d1b01ac1c
Bump json5 from 2.2.1 to 2.2.3 in /modules/ppcp-button
Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.3)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 10:50:46 +00:00
dependabot[bot]
f5bc239293
Bump webpack from 5.74.0 to 5.76.0 in /modules/ppcp-button
Bumps [webpack](https://github.com/webpack/webpack) from 5.74.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.74.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 10:46:01 +00:00
Alex P
211c57b938
Add final review for blocks 2023-04-17 10:23:52 +03:00
Alex P
b444c1ef55
Fix block context 2023-04-17 10:23:13 +03:00
Alex P
493933a1c1
Handle continuation mode in blocks 2023-04-07 15:58:59 +03:00
Alex P
3c557907f2
Refresh checkout totals after validation if needed
Refreshing the totals the same way as WC does this.
2023-04-04 11:35:16 +03:00
Emili Castells Guasch
610ba3e935 Add subscription from cart page 2023-03-30 14:47:28 +02:00
Alex P
bfaf05a96e
Add locations for block, do not load non-block scripts on block pages 2023-03-29 20:15:42 +03:00
Alex P
dc3fde5abf
Refactor SmartButton script loading checks 2023-03-29 20:12:39 +03:00
Emili Castells Guasch
e0228dbad3 Add subscriptions to single product page (WIP) 2023-03-29 16:34:30 +02:00
Emili Castells Guasch
1ed8f23efd Fix merge conflicts 2023-03-29 13:03:20 +02:00
Emili Castells Guasch
8d97954f42 Add content type json to all fetch ajax endpoints 2023-03-22 17:26:58 +01:00
Emili Castells Guasch
5ceb39c9e0 Fix code style 2023-03-22 17:00:16 +01:00
Emili Castells Guasch
df2c215ec9 Add content type json to all fetch ajax endpoints 2023-03-22 16:53:26 +01:00
Emili Castells Guasch
01ab5d6003 Add subscriptions api logic to Single product (WIP) 2023-03-20 11:58:34 +01:00
Alex P
fa0afe381a
Merge branch 'trunk' into pcp-157-blocks 2023-03-17 15:53:53 +02:00
Emili Castells Guasch
baee53e90f Fix merge conflicts 2023-03-17 09:20:51 +01:00
Emili Castells
9283c28bd1
Merge pull request #1234 from woocommerce/PCP-1483-price-suffix
Handle price suffix with price for product button check
2023-03-16 15:12:58 +01:00
dependabot[bot]
aaecb7a12f
Bump loader-utils from 2.0.2 to 2.0.4 in /modules/ppcp-button
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.2 to 2.0.4.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v2.0.2...v2.0.4)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-14 10:35:25 +00:00
Alex P
25b13e4467
Merge branch 'trunk' into pcp-157-blocks 2023-03-14 09:24:06 +02:00
Alex P
3d096fb2ad
Handle price suffix with price for product button check 2023-03-07 16:20:01 +02:00
Emili Castells Guasch
098ec6f057 Merge branch 'trunk' into PCP-1462-order-pay-later 2023-03-03 10:46:50 +01:00
Emili Castells
1debc92453
Merge pull request #965 from woocommerce/pcp-456-aub-choice
Improve cart subscriptions check and "All products for subscriptions" compatibility
2023-03-03 10:44:03 +01:00
Emili Castells Guasch
bdc69a6fc6 Fix return subscription plan id 2023-03-02 09:11:17 +01:00
Emili Castells Guasch
c1d7d30f04 Fix merge conflicts 2023-02-28 11:07:03 +01:00
Alex P
8950b9ca13
Render pay later message before buttons on order pay page 2023-02-27 12:03:32 +02:00
Alex P
d35fdea592
Fix pay later enabling
It should be enabled only when enabled on the Pay Later tab, also we disabling we can use `paylater` instead of `credit`
2023-02-27 12:02:47 +02:00