Commit graph

260 commits

Author SHA1 Message Date
dinamiko
c072e8550a Add retry counter meta to order to avoid duplicate invoice error on consequent tries 2021-11-18 14:45:34 +01:00
Alex P
6d905d01c8 Remove prefix from custom id 2021-11-16 17:28:11 +02:00
Alex P
3b98d8300b Use order ID instead of "number" for PayPal custom field
Otherwise we cannot find the order in webhook handlers
if order number is not order ID
2021-11-16 12:06:38 +02:00
dinamiko
4e4fc38077 Improve conditional format 2021-11-15 09:53:50 +01:00
dinamiko
6609759c9d Do not pass client_id if vaulting is disabled 2021-11-12 16:55:55 +01:00
Emili Castells
cb8c12383c
Merge pull request #348 from woocommerce/ppcp-376-fix-logging-error
Handle WP_Error when logging response
2021-11-08 11:49:09 +01:00
Alex P
a341d427fc Handle WP_Error when logging response 2021-11-08 11:08:09 +02:00
Emili Castells
e640eae060
Merge pull request #345 from woocommerce/pcp-352-fix-rounding-check
Fix/refactor rounding check
2021-11-04 11:10:50 +01:00
Alex P
74e4daa9b3 Fix patching check 2021-11-03 10:24:23 +02:00
Alex P
ed3cc49856 Fix phpdoc type 2021-11-03 10:16:33 +02:00
Alex P
fdbbfd8dec Check null instead of float cast 2021-10-29 09:20:39 +03:00
Alex P
ea462af3bf Fix psalm errors 2021-10-28 18:25:42 +03:00
Alex P
b7f628c8c7 Simplify null breakdown check
If it is null, we would return false either way.
Also why suddenly use $this->amount() if it is passed as parameter.
2021-10-28 17:39:33 +03:00
dinamiko
e3a793e3e5 Fix merge conflicts 2021-10-20 15:01:53 +02:00
dinamiko
bc7455e10f Improve method name and description 2021-10-15 17:22:06 +02:00
dinamiko
3295488b29 Change shipping preference if purchase units does not contain shipping 2021-10-15 16:16:54 +02:00
Alex P
b0396489c9 Extract is_voidable_authorization 2021-10-15 16:20:00 +03:00
dinamiko
ab0ed12495 Merge branch 'trunk' into PCP-327-prevent-subscription-from-being- 2021-10-14 10:34:26 +02:00
Alex P
d91131cb06 Fix null access 2021-10-13 17:34:47 +03:00
Alex P
84c31e0223 Fix event_types type 2021-10-13 17:33:37 +03:00
dinamiko
a42ae3567f Merge trunk 2021-10-13 16:13:42 +02:00
Alex P
10937144a1 Add typehint 2021-10-13 15:02:10 +03:00
dinamiko
f405778bdc Merge branch 'trunk' of github.com:woocommerce/woocommerce-paypal-payments into bug/fix-project-configuration 2021-10-13 10:55:38 +02:00
Alex P
c84a2832a1 Show reason text instead of enum value 2021-10-08 18:15:22 +03:00
Alex P
f4d82e0de8 Fix namespace name, remove classmap 2021-10-08 10:23:19 +03:00
dinamiko
e36d77fad2 Merge trunk (WIP) 2021-10-07 17:36:29 +02:00
Alex P
e02926a033 Rename new classes 2021-10-07 18:09:06 +03:00
Alex P
c65df28d54 Merge branch 'trunk' into bug/fix-project-configuration 2021-10-07 18:04:36 +03:00
Alex P
03e9ac9aad Fix capture endpoint returned object 2021-10-07 10:15:29 +03:00
Alex P
1a7eae93c2 Refactor capture status, make like authorization status 2021-10-06 22:12:06 +03:00
Alex P
bfec11b174 Remove wrong authorization statuses 2021-10-06 21:43:58 +03:00
Alex P
e8fa6cd611 Fix name 2021-10-06 21:38:37 +03:00
Alex P
7d0949eece Throw if denied authorization
like in capture()
2021-10-06 15:43:27 +03:00
dinamiko
a21aa9111a Merge branch 'trunk' into PCP-327-prevent-subscription-from-being- 2021-10-06 12:35:08 +02:00
Alex P
bac0895483 Add details to authorization status 2021-10-06 13:33:43 +03:00
Alex P
537fab4d28 Merge branch 'trunk' into void-transaction 2021-10-05 15:20:00 +03:00
dinamiko
a592b57848 Force authorization intent when purchasing subscription product 2021-10-05 12:12:19 +02:00
Alex P
06e437e0c3 Refactor logging, add missing logging 2021-10-04 19:16:50 +03:00
Alex P
4b3bba941a Void non-captured authorizations instead of refunding 2021-10-04 10:37:52 +03:00
Alex P
a1f3cb4a49 Add status code in unknown PayPalApiException message 2021-10-01 10:05:10 +03:00
Alex P
c09c1efc9c Improve logging 2021-10-01 10:05:10 +03:00
dinamiko
9ebedbfd85 Renaming class names 2021-09-30 16:30:52 +02:00
dinamiko
57ff2cc649 Fix merge conflicts 2021-09-30 12:52:15 +02:00
Emili Castells
62b5682733
Merge pull request #287 from woocommerce/PCP-302-using-a-saved-card-it-showed-an-
Add authorization flow for saved credit cards
2021-09-28 11:47:27 +02:00
dinamiko
2a31c3ce03 Add authorization flow for saved credit cards 2021-09-27 17:49:08 +02:00
Alex P
8c7baac7f9 Use CHECKOUT.ORDER.APPROVED for simulation
Not sure if it matters which event we use, but at least we are subscribed to this one
2021-09-24 17:36:51 +03:00
dinamiko
a5f308cb9d Add logger to pending services 2021-09-24 10:33:21 +02:00
dinamiko
02d5411b18 Merge branch 'trunk' into release/1.6.0 2021-09-24 09:29:43 +02:00
Alex P
ea2f728cd8 Add webhook simulation 2021-09-23 10:53:43 +03:00
dinamiko
ead6858a51 Log 3DS authentication result 2021-09-21 11:34:16 +02:00