Commit graph

194 commits

Author SHA1 Message Date
Emili Castells Guasch
b52af54c81 Remove debug log entry 2023-10-18 11:26:17 +02:00
Emili Castells Guasch
4e6b856a0d Add early return if transaction id does not exist 2023-09-12 14:32:41 +02:00
Emili Castells Guasch
250172a2ad Merge branch 'trunk' into PCP-1968-subscriptions-api-renewals 2023-09-12 09:36:51 +02:00
Emili Castells Guasch
70dc55dcc1 Merge branch 'trunk' into PCP-1968-subscriptions-api-renewals 2023-09-07 12:06:27 +02:00
Emili Castells Guasch
090287f0f0 Merge branch 'trunk' into PCP-1973-wc-payment-token-created-multiple-times-when-webhook-vault-payment-token-created-is-received 2023-09-07 09:56:29 +02:00
Emili Castells Guasch
e819dc68df Ensure WC payment token does not exist before creating it 2023-09-04 16:33:04 +02:00
Emili Castells Guasch
fe73de45ad Add payment method to renewal order 2023-08-31 16:08:51 +02:00
Emili Castells Guasch
1942acf67b Fix psalm 2023-08-30 16:22:23 +02:00
Emili Castells
2571d31ad8
Merge pull request #1578 from woocommerce/PCP-1512-pay-pal-fee-and-pay-pal-payout-do-not-change-on-order-if-we-do-partial-refund
PayPal fee and PayPal Payout do not change on order if we do partial refund (1512)
2023-08-30 11:05:34 +02:00
Emili Castells Guasch
1cddb3d132 Update transaction id on parent order or otherwsie create renewal order 2023-08-18 16:17:37 +02:00
Emili Castells
0e97af9122
Merge pull request #1529 from woocommerce/PCP-1899-high-rate-of-auth-voids
High rate of auth voids on vaulted subscriptions for guest users (1899)
2023-08-17 11:28:11 +02:00
Emili Castells Guasch
26c9733181 Ensure WooCommerce Subscriptions plugin functions exist 2023-08-16 11:24:34 +02:00
Pedro Silva
d32aaab1af
Add updating refund fees in order 2023-08-04 17:51:32 +01:00
Pedro Silva
ef5fc4b3d4
Add support for refunds in api response structure 2023-08-04 11:46:34 +01:00
Pedro Silva
af3e68a017
Add paypal refund fees to order template 2023-08-03 15:53:51 +01:00
Emili Castells Guasch
c198929919 Merge branch 'trunk' into PCP-1899-high-rate-of-auth-voids 2023-08-03 10:51:48 +02:00
Pedro Silva
246fb86c65
Changed the woocommerce_paypal_payments_order_approved_webhook_can_create_wc_order filter default value to false 2023-08-02 08:33:09 +01:00
Emili Castells Guasch
0278db9787 Ignore phpcs warnings 2023-07-24 12:04:03 +02:00
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