Anton Ukhanev
3a72a73ae3
Auto-fix PHPCS
2021-08-30 08:08:41 +02:00
Anton Ukhanev
b56484e46c
Bring remaining classes to comply with PSR-4
2021-08-26 17:17:28 +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
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
Jorge A. Torres
11aa5daca9
Add REST routes related to onboarding
...
Adds various routes under `/wc-paypal/v1/onboarding` including `/status` (onboarding status), `/set-credentials` (manually set merchant ID/email and keys) and `/get-params` (information useful for presenting the user with an onboarding button).
2021-02-04 16:26:16 -05:00
Jorge A. Torres
b8870415af
Rework onboarding rendering and JS code
...
- Add `ppcp_onboarding` object and separate sandbox/production callbacks.
- Prevent errors when loading `onboarding.js` outside of the settings screen.
- Workaround PayPal’s partner.js shortcomings.
2021-02-04 13:57:24 -05:00
David Remer
04da406447
delete dcc product status flag when changing the credentials
2020-10-13 09:41:36 +03:00
Jorge A. Torres
02718c6c77
Rename plugin to "WooCommerce PayPal Payments"
2020-10-09 19:00:00 -03:00
David Remer
abb2346c9f
codestyle
2020-10-06 14:46:28 +03:00
David Remer
722b67a3d1
make sure to store sandbox_on even when method throws error
2020-10-06 14:41:44 +03:00
David Remer
951092558d
remove the alert box in javascript when onboarding fails
2020-10-02 12:11:07 +03:00
David Remer
2a099b0634
simplify should_render logic
2020-10-01 09:00:09 +03:00
David Remer
e5a569e0a0
seperate state detection by production/sandbox
2020-09-25 11:38:22 +03:00
David Remer
3733576dff
fully onboarded needs all credentials being present
2020-09-25 11:24:05 +03:00
David Remer
de4dc878ef
store credentials also in the sandbox-prod-credential buckets when returning from paypal
2020-09-25 09:38:01 +03:00
David Remer
9327b19b7d
add new fields for production and sandbox credentials.
...
Change toggle functionality. Load connect-to-sandbox-button and connect-to-production-button in case credentials are missing
2020-09-25 09:19:43 +03:00
David Remer
09a5f0e466
enable loginseller endpoint to switch between sandbox and live
2020-09-24 10:29:09 +03:00
David Remer
6f870ec7a5
render sandbox and live connect button and toggle between those depending on sandbox checkbox
2020-09-24 09:58:28 +03:00
David Remer
b70819847b
load onboarding script on start screen
2020-09-24 09:57:55 +03:00
David Remer
ddd4f5ba09
downgrade dhii/module-interface to 0.1
2020-09-16 10:18:45 +03:00
David Remer
6db0a457bf
remove CacheInterface and PSR related @throw doc comments
2020-09-14 07:29:20 +03:00
David Remer
9e2f1f4bf9
codestyle
2020-09-11 14:24:08 +03:00
David Remer
c788341887
change namespace vendor to WooCommerce
2020-09-11 14:11:10 +03:00
David Remer
c5899d915c
downgrade plugin to php 7.0
2020-09-11 13:38:02 +03:00
David Remer
5e011b4f95
rename plugin and slug to PayPal Payments for WooCommerce
2020-09-11 10:20:12 +03:00
David Remer
9a127ced6a
prevent connect paypal link default only when PAYPAL has not loaded yet
2020-09-08 10:12:32 +03:00
David Remer
f2723c523e
codestyle
2020-09-01 14:43:46 +03:00
David Remer
f8e82bdfaf
move module.local to module
2020-09-01 14:21:58 +03:00