New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@airwallex/components-sdk

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@airwallex/components-sdk

## Installation

  • 1.2.8
  • npm
  • Socket score

Version published
Weekly downloads
13K
increased by37.54%
Maintainers
1
Weekly downloads
 
Created
Source

Airwallex Components SDK

Installation

Use @airwallex/components-sdk

Install with Yarn

yarn add @airwallex/components-sdk

Or, with NPM

npm install @airwallex/components-sdk

Initialization

import { init } from '@airwallex/components-sdk';

const options = {
  elements: ['kyc', 'paymentsKyb'],
  langKey: 'en',
  env: 'prod',
  authCode: 'x4D7A7wOSQvoygpwqweZpG0GFHTcQfVPBTZoKV7EibgH',
  clientId: 'BIjjMYsYTPuRqnkEloSvvf',
  codeVerifier:
    '~wh344Lea1FsCMVH39Fn9R2~nqq2uyD4wbvG9XCzWRxd0sZh9MFiF9gSVkM0C-ZvrdtjBFA6Cw1EvCpJcIjaeXg1-BXCfZd25ZmvuYZAqZtjJQA3NAa~7X1sgEfbMZJwQ',
};

await init(options);
OptionTypeRequired?Default valueDescription
elementsArray<string>YES-The Airwallex elements you want to integrate. Supported values are kyc, paymentsKyb,
envstringNOprodThe Airwallex environment you want to integrate your application with. Options include: staging, demo, prod
langKeystringNOenLanguage. Options include: en, zh
clientIdstringYES-Your unique Client ID issued by Airwallex. You can find the client id on Airwallex WebApp - Developer - API Keys
authCodestringYES-Auth code to authenticate the connected account retrieved from /api/v1/accounts/{id}/authorize. Embedded Component Authorization API
codeVerifierstringYES-Serves as proof key for code exchange (see RFC 7636 Section 4). A random string picked by yourself, and used to generate the codeChallenge.

Create an Element

Call createElement(elementName, options) to create an element object.

Method parameters
ParameterTypeRequired?Description
typestringYESThe elements name of element.Supported values are kyc, paymentsKyb.
optionsRecord<string, unknown>NOOptions for creating an Element, which differ for each element.
Example
import { createElement } from '@airwallex/components-sdk';

const options = {
  hideHeader: true,
  hideNav: true,
};

const element = createElement('kyc', options);

FAQs

Package last updated on 22 May 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