Commit graph

226 commits

Author SHA1 Message Date
Alex P
0cbc999684
Allow to disable order creation in webhook via filter 2023-07-21 19:37:34 +03:00
Alex P
e678967c55
Do not create wc order in webhook when no form data 2023-07-21 19:35:56 +03:00
Emili Castells Guasch
81a735751b Use guest id if exist in user meta 2023-07-21 13:39:48 +02:00
Alex P
8de593018f
Log already completed order 2023-06-14 16:32:26 +03:00
Alex P
ffff063998
Refactor 2023-06-14 16:05:44 +03:00
Alex P
46ea7621d3
Create wc order in approval webhook if missing 2023-06-14 12:44:06 +03:00
Alex P
10d99578d6
Send customer id as custom_id when no wc order yet 2023-06-14 12:41:56 +03:00
Alex P
9db147679d
Improve webhook wc order error messages 2023-06-09 20:23:07 +03:00
Alex P
774fe51cfc
Refactor webhook responses 2023-06-09 16:26:58 +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
Alex P
d548bb8788
Check admin permissions 2023-05-31 16:36:02 +03:00
Emili Castells Guasch
353ba42cbc Fix psalm 2023-05-16 11:49:08 +02:00
Emili Castells Guasch
6f2a47dddb Fix phpcs 2023-05-16 11:39:38 +02:00
Emili Castells Guasch
f40ca96b87 Merge branch 'trunk' into PCP-991-detach-vaulting-from-wc-subscriptions-support 2023-05-16 09:56:32 +02:00
Alex P
a028eafeef
Cache webhook verification results
Looks like `permission_callback` can be called multiple times in some cases/newer WP, resulting in difficult to read logs  and other issues, such as slower request handling or possible lack of idempotence (first returned true, but then request failed and returned false).
So now caching it in a variable.
2023-05-16 10:15:42 +03:00
Emili Castells Guasch
b126d77dfb Merge branch 'trunk' into PCP-991-detach-vaulting-from-wc-subscriptions-support 2023-05-15 12:16:20 +02:00
Emili Castells Guasch
3362146fcc Fix subscription parent order refund 2023-05-12 16:28:15 +02:00
Alex P
8dc0079a41
Merge branch 'trunk' into PCP-1480-order-left-on-hold-after-payment-trough-pui-if-merchant-connected-account-trough-manual-credential-input 2023-05-12 15:03:31 +03:00
Emili Castells Guasch
163b7d9f7a Handle subscription refund from PayPal (WIP) 2023-05-10 16:59:03 +02:00
Emili Castells Guasch
bd708239d7 Add transaction id to subscription parent order 2023-05-10 12:46:41 +02:00
Emili Castells Guasch
b477ec4ba4 Fix update plan price on webhook handler 2023-05-04 15:40:45 +02:00
Emili Castells Guasch
eca8a3b09c Fix psalm 2023-05-02 12:35:46 +02:00
Emili Castells Guasch
8b564d6fc3 Merge trunk 2023-04-20 14:18:30 +02:00
Emili Castells Guasch
29a21d214f Merge trunk 2023-04-17 14:16:53 +02:00
dependabot[bot]
e902cc329d
Bump json5 from 2.2.0 to 2.2.3 in /modules/ppcp-webhooks
Bumps [json5](https://github.com/json5/json5) from 2.2.0 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.0...v2.2.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 10:54:17 +00:00
dependabot[bot]
4ad19a7b51
Bump webpack from 5.74.0 to 5.76.0 in /modules/ppcp-webhooks
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:39:51 +00:00
Emili Castells Guasch
8c10941392 Add update subscription plan webhook handler 2023-04-13 15:24:21 +02:00
Emili Castells Guasch
502fd7eeca Add update subscription product webhook handler 2023-04-13 11:55:50 +02:00
Emili Castells Guasch
baee53e90f Fix merge conflicts 2023-03-17 09:20:51 +01:00
Emili Castells Guasch
57581a5ac4 Fix merge conflict 2023-03-17 08:56:58 +01:00
Emili Castells
aea0963812
Merge pull request #1239 from woocommerce/PCP-1481-webhook-storage
Fix webhook issues when switching sandbox, and delete all webhooks when unsubscribing
2023-03-16 09:17:56 +01:00
dependabot[bot]
8f3c548c76
Bump loader-utils from 2.0.0 to 2.0.4 in /modules/ppcp-webhooks
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.0 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.0...v2.0.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-14 11:20:41 +00:00
Alex P
9adcfe4b7d
Hide webhook elements when sandbox state is not matching the server 2023-03-10 14:14:05 +02:00
Alex P
4c59337247
Delete all webhooks before adding 2023-03-09 10:47:29 +02:00
Alex P
c77f20d2f9
Fix name to avoid confusion 2023-03-08 17:36:38 +02:00
Emili Castells Guasch
a5626b52a5 Add update pricing webhook handler 2023-03-08 09:17:30 +01:00
Emili Castells Guasch
f84d9da8d6 Handle subscription renewal from payment sale complete webhook handler 2023-03-07 12:15:29 +01:00
Emili Castells Guasch
501dbcca55 Add billing subscription cancelled webhook handler 2023-03-07 10:35:39 +01:00
Alex P
36cffad369
Fix formatting 2023-03-06 10:19:23 +02:00
Emili Castells Guasch
5a4a43e046 Fix phpcs 2023-03-02 14:35:30 +01:00
Emili Castells Guasch
cce8ee9d8d Remove calls to enpoints if not onboarded 2023-03-02 12:08:20 +01:00
emilicastells
2a1b987f66
Handle payment sale completed webhook (WIP) 2023-02-10 17:25:51 +01:00
emilicastells
d30e85d8e7
Add payment sale completed webhook handler 2023-02-08 11:09:16 +01:00
emilicastells
90e5bbaf03
Fix phpcs 2023-01-02 14:28:24 +01:00
emilicastells
bf648715d9
Create new WC payment token instance for each new payment token 2023-01-02 12:50:13 +01:00
emilicastells
853357f1c5
Merge branch 'trunk' into PCP-591-save-and-display-vaulted-payment-methods-in-woo-commerce-native-endpoint 2022-12-20 11:27:05 +01:00
emilicastells
2e691ee9b7
Add email to PayPal payment token 2022-12-19 12:36:23 +01:00
emilicastells
e3dc563a6f
Fix phpcd 2022-12-08 14:18:03 +01:00
emilicastells
b161b8cfb5
Fix psalm 2022-12-08 14:05:28 +01:00
Narek Zakarian
b47e3ab66d
Change the webhook simulation option name constant visibility. 2022-12-07 19:15:03 +04:00