@plentymarkets/shop-api / getPayPalDataClientToken
Function: getPayPalDataClientToken() ​
getPayPalDataClientToken(
context
):Promise
<Data
<PayPalConfigResponse
>>
Method getPayPalDataClientToken - get PayPal data client token
Parameters ​
• context: PlentysystemsIntegrationContext
Returns ​
Promise
<Data
<PayPalConfigResponse
>>
Remarks ​
- Calls the /rest/payment/payPal/client_token endpoint.
- This method is used to get the PayPal client token and client id.
Example ​
ts
const { data } = await useSdk().plentysystems.getPayPalDataClientToken();