Commit graph

204 commits

Author SHA1 Message Date
Alex P.
f538ea2ef2
Require PHP 7.4+ 2024-09-03 09:07:12 +03:00
Emili Castells Guasch
819149057e Display PayPal fees in wc order 2024-08-26 12:34:53 +02:00
Emili Castells Guasch
467960f5a2 Revert webhook handling for now so psalm does not complain 2024-07-22 14:49:01 +02:00
Emili Castells Guasch
93506fe5b7 Revert webhook handling for now so psalm does not complain 2024-07-22 14:42:03 +02:00
Emili Castells Guasch
335f680344 Extract logic from gateway to modules 2024-07-16 17:51:02 +02:00
Emili Castells Guasch
11105d913b Run eslint autofix 2024-07-12 12:58:34 +02:00
Emili Castells Guasch
0a892a5f5b Return success response if event type is BILLING_AGREEMENTS.AGREEMENT.CREATED 2024-03-06 12:12:45 +01:00
Emili Castells Guasch
632409ef1c Do not handle webhook if version is not 2.0 2024-03-05 11:44:48 +01:00
Pedro Silva
fb1ceeba76
Merge branch 'trunk' into PCP-1393-update-to-vault-v-3
# Conflicts:
#	modules/ppcp-api-client/services.php
#	modules/ppcp-wc-gateway/src/Processor/OrderProcessor.php
#	tests/PHPUnit/WcGateway/Processor/OrderProcessorTest.php
2023-11-24 11:20:15 +00:00
Alex P
a61e9303e9
Create order and redirect when no order 2023-11-14 10:55:30 +02:00
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