Commit graph

58 commits

Author SHA1 Message Date
Alex P
f23df0b91c Make sanitize_custom_id more correct 2021-11-16 17:28:11 +02:00
Alex P
af746a52c1 Remove leftover of development logging 2021-10-20 17:41:46 +03:00
dinamiko
e3a793e3e5 Fix merge conflicts 2021-10-20 15:01:53 +02:00
Alex P
93be2ded35 Fix rest_ensure_response psalm error
rest_ensure_response can return WP_Error if wp error was passed
2021-10-15 10:58:29 +03:00
Alex P
3051f27fab Fix psalm 2021-10-15 10:54:38 +03:00
Alex P
21acaf9e77 Set transaction id after webhook capture 2021-10-15 10:24:19 +03:00
dinamiko
457ebeeb8c Move capture authorized payment into authorized payment processor 2021-10-14 15:45:57 +02:00
Emili Castells
79e2dd2ef5
Merge pull request #322 from woocommerce/pcp-271-use-psalm
Add psalm
2021-10-13 16:48:49 +02:00
Emili Castells
217a085498
Merge pull request #321 from woocommerce/ngrok
Add ngrok support to allow using webhooks with a local development server
2021-10-13 16:43:23 +02:00
Alex P
92eef9ceb9 Fix number type 2021-10-13 17:34:12 +03:00
Alex P
84c31e0223 Fix event_types type 2021-10-13 17:33:37 +03:00
Alex P
3b57301712 Merge branch 'trunk' into pcp-271-use-psalm 2021-10-13 17:02:08 +03:00
Alex P
d586b4a188 Restore deleted file 2021-10-13 16:57:06 +03:00
Alex P
ffa213dde0 Add type 2021-10-13 16:26:23 +03:00
Alex P
d44198cf1f Merge branch 'trunk' into ngrok 2021-10-13 15:56:25 +03:00
Alex P
10937144a1 Add typehint 2021-10-13 15:02:10 +03:00
Alex P
c88ce1ff09 Add ngrok to allow using webhooks with a local development server 2021-10-12 12:45:53 +03:00
Alex P
295ecb91ff Always use https for webhook urls
Paypal allows only https
2021-10-12 12:19:15 +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
dinamiko
36eb284dce Use sass instead of node-sass 2021-09-29 11:47:58 +02:00
dinamiko
065fc4c241 Update all packages to latest versions 2021-09-29 11:10:56 +02:00
dinamiko
b6cde1f593 Regenerate yarn.lock files 2021-09-29 10:20:11 +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
1d17a4d3ab Make webhook nullable to prevent fatal error 2021-09-24 12:20:43 +02:00
Alex P
8c52c815c8 Make event type param 2021-09-23 10:53:54 +03:00
Alex P
ea2f728cd8 Add webhook simulation 2021-09-23 10:53:43 +03:00
Alex P
0268524261 Fix log message 2021-09-21 17:53:01 +03:00
Alex P
2c294861a1 Add service for current webhook 2021-09-21 17:52:44 +03:00
Alex P
d1ead9fe1a Fix name in package.json 2021-09-16 17:16:31 +03:00
Alex P
d908445e5e Add resubscribe webhooks button 2021-09-16 17:08:43 +03:00
Alex P
1720c12ef3 Try to subscribe if no webhooks when visiting webhooks status page 2021-09-16 15:44:00 +03:00
Alex P
8ea2d3daf6 Change "register" to "subscribe" for consistency 2021-09-16 15:43:50 +03:00
Alex P
a6b1b79e74 Improve table style 2021-09-16 15:24:46 +03:00
Alex P
e2a7f6d8d9 Show webhooks 2021-09-16 13:48:20 +03:00
Alex P
0b029a9392 Add webhooks status page 2021-09-16 12:44:29 +03:00
Alex P
620f25d88d Refactor field page checking
Reduce code duplication and support more than 2 pages.
Also remove 'all'
2021-09-16 12:40:00 +03:00
Alex P
803bc64d34 Add logging 2021-09-14 10:25:50 +03:00
Alex P
b853beb3b1 Refactor webhook registration errors logging
Logging was useless because it was just repeating the exception message. Context args were not used.
2021-09-14 10:25:23 +03:00
Anton Ukhanev
df185157bd Update parameter name
Fixes PHPCS
2021-08-30 08:10:43 +02:00
Anton Ukhanev
3a72a73ae3 Auto-fix PHPCS 2021-08-30 08:08:41 +02:00
Anton Ukhanev
69d9631a73 Now using modularity standard v0.3
This is the newest release, and is the first one that is compatible
with PHP 8. Other changes are BC-breaking, but very very minor.
2021-08-26 11:11:49 +02:00
Anton Ukhanev
cabcb7d9e4 Add Container typehint to all service definitions 2021-08-26 11:10:16 +02:00
Anton Ukhanev
d4c8282518 Use Composer modules and convert modules to PSR-4
PSR-4 is much more robust and predictable. But to do this,
a source root dir must be specified for every module.
This could be done in the root file, but this is not very modular.
Instead, now every module declares its own source root by using
the amazing Composer Merge Plugin. This approach allows each module
to also declare its own dependencies. Together, these changes allow
modules to be easily extractable to separate pacakges when the need
arises, and in general improves modularity significantly.
2021-08-26 11:01:20 +02:00
dinamiko
119543ae2d Update dhii/module-interface to version 0.3 2021-07-14 14:58:23 +02:00
dinamiko
d8817134a9 Update dhii\module-interface 2021-07-06 09:41:30 -05:00
Kirill Braslavsky
4ee48de635 call payment_complete() instead of update status 2021-04-14 16:34:14 +03:00
dinamiko
9b90048778 Do not reschedule webhook registration on creation failure 2020-12-15 14:55:46 +01:00
Jorge A. Torres
237819dc9f Rename activation/deactivation hooks 2020-10-09 19:55:28 -03:00
Jorge A. Torres
02718c6c77 Rename plugin to "WooCommerce PayPal Payments" 2020-10-09 19:00:00 -03:00