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
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
314ba44bb9
Use realpath for __FILE__ when creating url
...
on some sites __FILE__ contains .. which breaks url creation
2022-01-14 16:35:13 +02:00
Alex P
3b488fbf8e
Allow to specify products value in partner referrals data
2022-01-14 13:56:52 +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
Anton Ukhanev
9f2496ada0
Change case of OnboardingRestController
class name
2021-09-13 16:28:47 +02:00
Anton Ukhanev
b56484e46c
Bring remaining classes to comply with PSR-4
2021-08-26 17:17:28 +02:00
Anton Ukhanev
cabcb7d9e4
Add Container typehint to all service definitions
2021-08-26 11:10:16 +02:00
dinamiko
817a460666
Fix phpcs errors
2021-07-27 14:29:05 +02:00
dinamiko
ebc4316f83
Use client id and secret from persisted settings if available
2021-07-26 16:08:32 +02: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
David Remer
2996bdbe8b
change credentials, endpoint urls, plugin url, js sdk date
2020-10-13 09:42:34 +03:00
Jorge A. Torres
02718c6c77
Rename plugin to "WooCommerce PayPal Payments"
2020-10-09 19:00:00 -03:00
David Remer
81bedf3a80
move api urls to constants
2020-10-01 08:53:44 +03:00
David Remer
d7cd055a28
connect the referral endpoints always to the connect.woocommerce instance
2020-09-25 10:09:35 +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
25fa11b0f8
extract sandbox host into its own container key.
...
With #21 , we do not know anymore if we are currently in sandbox or production mode. We seperate the two hosts, so we can later instantiate different Api endpoint objects with different hosts. This enables us to call two different hosts in the same PHP process. In the current scope, just seperating the hosts (and not secrets/keys) should be sufficient.
2020-09-24 08:41:08 +03:00
David Remer
c09e314baa
call partners endpoint when rendering the dcc settings to check whether the pp account is able to process dcc.
...
In order to do so, it was also necessary to store the merchant id during onboarding. includes a bugfix where the cache invalidation did not work because the cache object was constructed with the wrong prefix key.
2020-09-16 10:00:28 +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
a3ee3368da
delete some references to modules.locale
2020-09-01 14:53:03 +03:00
David Remer
f8e82bdfaf
move module.local to module
2020-09-01 14:21:58 +03:00