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: string

    • required: 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
        • 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
        1window.paypalInsight('config', 'YOUR_CLIENT_ID', {
        2 merchant_id: 'YOUR_MERCHANT_ID',
        3 debug: true
        4});