PayPal Insights SDK - Config Command
DOCS
Last updated: Aug 15th, 7:13am
Use the config command to initialize the Insights SDK on the page.
1window.paypalInsight('config', CLIENT_ID, CONFIG_OPTIONS);
CLIENT_ID
This is your PayPal Client ID.
type:
stringrequired: true
1window.paypalInsight('config', 'YOUR_CLIENT_ID');
CONFIG_OPTIONS
- type:
object - required: false
- props:
- merchant_id: partners will pass the merchant ID.
- type:
string - required: false
- type:
- debug: set to true to receive logs in the browser console for errors and recommendations in the integration with the Insights SDK.
- type:
boolean - default value: false
- required: false
Note: This should only be used during development to ensure that you are sending the right events.
- type:
- merchant_id: partners will pass the merchant ID.
1window.paypalInsight('config', 'YOUR_CLIENT_ID', {2 merchant_id: 'YOUR_MERCHANT_ID',3 debug: true4});