Socket
Socket
Sign inDemoInstall

@paypal/connect-loader-component

Package Overview
Dependencies
Maintainers
22
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paypal/connect-loader-component

Loads AXO script


Version published
Weekly downloads
35
decreased by-46.15%
Maintainers
22
Weekly downloads
 
Created
Source

accelerated-checkout-loader

Provides a static asset loader to fetch the latest PayPal Accelerated-Checkout components.

Installation

npm install -S @paypal/accelerated-checkout-loader

Usage

The minified accelerated-checkout-loader is available for most uses; in addition, an unminified accelerated-checkout-loader is available for development or testing.

Minified

Serves the minified version of the AXO script.

import { loadAxo } from "@paypal/accelerated-checkout-loader";

loadAxo({ minified: true })
  .then(() => {
    console.log("minified script loaded");
    return;
  })
  .catch((err) => {
    console.log("There was an error: ", err);
  });

If no options are passed, the minified script is served by default

import { loadAxo } from "@paypal/accelerated-checkout-loader";

loadAxo()
  .then(() => {
    console.log("minified script loaded");
    return;
  })
  .catch((err) => {
    console.log("There was an error: ", err);
  });

Unminified

Serves the unminified version of the AXO script.

import { loadAxo } from "@paypal/accelerated-checkout-loader";

loadAxo({ minified: true })
  .then(() => {
    console.log("script loaded");
    return;
  })
  .catch((err) => {
    console.log("There was an error: ", err);
  });

Keywords

FAQs

Package last updated on 21 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc