Commit graph

109 commits

Author SHA1 Message Date
Alex P
a6689eb371 Merge branch 'trunk' into pcp-541-onboarding 2022-02-22 16:49:34 +02:00
Emili Castells
7caecef8d9
Merge pull request #502 from woocommerce/pcp-566-assets-version
Use plugin version for assets version
2022-02-22 15:48:30 +01:00
Alex P
9f8f9702cb Add tooltips 2022-02-22 15:56:22 +02:00
Alex P
9297f1a2fe Disable card funding source if not accepting cards in onboarding 2022-02-22 15:25:12 +02:00
Alex P
f6446f5ced Update onboarding options UI 2022-02-22 14:32:57 +02:00
Alex P
4a858bd5b8 Load onboarding assets only on the first tab 2022-02-22 09:55:46 +02:00
Alex P
a6d7bb1069 Change onboarding button text 2022-02-21 16:28:53 +02:00
Alex P
b7d2c0fe59 Hide both onboarding radiobuttons when acdc not supported 2022-02-18 17:04:34 +02:00
Alex P
c635c616dc Change onboarding option text 2022-02-18 13:40:05 +02:00
Alex P
c9b3479cf6 Change credentials error message 2022-02-18 12:42:48 +02:00
Alex P
0c07ebd629 Use plugin version as asset version 2022-02-17 18:51:24 +02:00
Alex P
d2a1eff9a8 Update phpdoc 2022-02-08 10:30:15 +02:00
Alex P
44cb17107c Fix sandbox checkbox
Sometimes the state of UI may get restored after page reload and will not match the server settings
2022-02-08 10:25:01 +02:00
Alex P
cb2adfd044 Remove unused 2022-02-08 10:12:38 +02:00
Alex P
625004e2c6 Validate manual input 2022-02-07 09:06:06 +02:00
Alex P
38135bc94e Allow to switch between live and sandbox 2022-02-04 15:29:23 +02:00
Alex P
70ef7dd367 Refactor settings element state requirements checking 2022-02-03 14:34:33 +02:00
Alex P
72c9bd1bef Change onboarding buttons text 2022-02-03 13:42:46 +02:00
Alex P
2e50e59940 Remove progressive onboarding state 2022-01-31 18:16:25 +02:00
Alex P
8b3f6cb613 Merge branch 'trunk' into pcp-370-onboarding 2022-01-21 15:06:16 +02:00
Alex P
ff8c6fdf01 New onboarding options, buttons 2022-01-17 17:59:35 +02:00
Alex P
5591b2806d Fix double slash in asset urls 2022-01-14 16:33:59 +02:00
Alex P
3b488fbf8e Allow to specify products value in partner referrals data 2022-01-14 13:56:52 +02:00
Alex P
89782be6c4 Use different style for sandbox button 2022-01-13 08:44:26 +02:00
dinamiko
57ff2cc649 Fix merge conflicts 2021-09-30 12:52:15 +02:00
Alex P
7ef5991cb8 Log endpoint errors 2021-09-23 17:19:46 +03:00
Alex P
4c02326d63 Register webhooks a bit later
Otherwise it uses old state (and cannot choose the correct host, etc.), at least with ALTERNATE_WP_CRON
2021-09-14 10:25:50 +03:00
Anton Ukhanev
9f2496ada0 Change case of OnboardingRestController class name 2021-09-13 16:28:47 +02: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
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