mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +08:00
♻️ Consolidate authentication name: OAuth, not ISU
This commit is contained in:
parent
ec029dd4c5
commit
30ab1bd51f
3 changed files with 11 additions and 10 deletions
|
@ -46,14 +46,15 @@ export const REST_DIRECT_AUTHENTICATION_PATH =
|
|||
'/wc/v3/wc_paypal/authenticate/direct';
|
||||
|
||||
/**
|
||||
* REST path to perform the ISU authentication check, using shared ID and authCode.
|
||||
* REST path to perform the OAuth authentication check, using shared ID and authCode.
|
||||
*
|
||||
* Used by: Controls
|
||||
* See: AuthenticateRestEndpoint.php
|
||||
*
|
||||
* @type {string}
|
||||
*/
|
||||
export const REST_ISU_AUTHENTICATION_PATH = '/wc/v3/wc_paypal/authenticate/isu';
|
||||
export const REST_OAUTH_AUTHENTICATION_PATH =
|
||||
'/wc/v3/wc_paypal/authenticate/oauth';
|
||||
|
||||
/**
|
||||
* REST path to generate an ISU URL for the PayPal-login.
|
||||
|
|
|
@ -15,7 +15,7 @@ import {
|
|||
REST_CONNECTION_URL_PATH,
|
||||
REST_HYDRATE_MERCHANT_PATH,
|
||||
REST_REFRESH_FEATURES_PATH,
|
||||
REST_ISU_AUTHENTICATION_PATH,
|
||||
REST_OAUTH_AUTHENTICATION_PATH,
|
||||
REST_WEBHOOKS,
|
||||
REST_WEBHOOKS_SIMULATE,
|
||||
} from './constants';
|
||||
|
@ -82,7 +82,7 @@ export const controls = {
|
|||
} ) {
|
||||
try {
|
||||
return await apiFetch( {
|
||||
path: REST_ISU_AUTHENTICATION_PATH,
|
||||
path: REST_OAUTH_AUTHENTICATION_PATH,
|
||||
method: 'POST',
|
||||
data: {
|
||||
sharedId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue