@plentymarkets/shop-api / paypalGetters
Variable: paypalGetters ​
constpaypalGetters:object
Defined in: getters/paypalGetters.ts:30
Type Declaration ​
getClientId ​
getClientId: (
config) =>string
Returns the PayPal client ID from the configuration.
Parameters ​
config ​
The PayPal configuration response object.
Returns ​
string
The client ID string.
getMerchantId ​
getMerchantId: (
config) =>string
Returns the PayPal merchant ID from the configuration.
Parameters ​
config ​
The PayPal configuration response object.
Returns ​
string
The merchant ID string.
isProduction ​
isProduction: (
config) =>boolean
Returns whether the PayPal integration is configured for the production environment.
Parameters ​
config ​
The PayPal configuration response object.
Returns ​
boolean
true if sandbox mode is disabled (i.e. production mode is active), otherwise false.