Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

airwallex-payment-elements

Package Overview
Dependencies
Maintainers
1
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

airwallex-payment-elements - npm Package Compare versions

Comparing version 0.0.58 to 0.0.59

2

lib/airwallex.cjs.js

@@ -1,4 +0,4 @@

/* Airwallex Checkout Component Version [0.0.58] */
/* Airwallex Checkout Component Version [0.0.59] */
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e="https://checkout.airwallex.com/assets/bundle.min.js",r=Promise.resolve().then(()=>{if("undefined"==typeof window)return null;if(window.Airwallex)return window.Airwallex;const r=document.querySelector(`script[src="${e}"], script[src="${e}/"]`)||(()=>{const r=document.createElement("script");r.src=e;const t=document.head||document.body;if(!t)throw new Error("Expected document.body not to be null. Airwallex.js requires a <head> or <body> element.");return t.appendChild(r),r})();return new Promise((e,t)=>{r.addEventListener("load",()=>{window.Airwallex?e():t(new Error("Failed to load Airwallex.js"))}),r.addEventListener("error",()=>{t(new Error("Failed to load Airwallex.js"))})})});exports.loadAirwallex=()=>r;
/* Airwallex @Charlie.Lang */
//# sourceMappingURL=airwallex.cjs.js.map

@@ -1,4 +0,4 @@

/* Airwallex Checkout Component Version [0.0.58] */
/* Airwallex Checkout Component Version [0.0.59] */
const e="https://checkout.airwallex.com/assets/bundle.min.js",r=Promise.resolve().then(()=>{if("undefined"==typeof window)return null;if(window.Airwallex)return window.Airwallex;const r=document.querySelector(`script[src="${e}"], script[src="${e}/"]`)||(()=>{const r=document.createElement("script");r.src=e;const o=document.head||document.body;if(!o)throw new Error("Expected document.body not to be null. Airwallex.js requires a <head> or <body> element.");return o.appendChild(r),r})();return new Promise((e,o)=>{r.addEventListener("load",()=>{window.Airwallex?e():o(new Error("Failed to load Airwallex.js"))}),r.addEventListener("error",()=>{o(new Error("Failed to load Airwallex.js"))})})}),o=()=>r;export{o as loadAirwallex};
/* Airwallex @Charlie.Lang */
//# sourceMappingURL=airwallex.es.js.map

@@ -1,4 +0,4 @@

/* Airwallex Checkout Component Version [0.0.58] */
/* Airwallex Checkout Component Version [0.0.59] */
var Airwallex=function(e){"use strict";const r="https://checkout.airwallex.com/assets/bundle.min.js",t=Promise.resolve().then(()=>{if("undefined"==typeof window)return null;if(window.Airwallex)return window.Airwallex;const e=document.querySelector(`script[src="${r}"], script[src="${r}/"]`)||(()=>{const e=document.createElement("script");e.src=r;const t=document.head||document.body;if(!t)throw new Error("Expected document.body not to be null. Airwallex.js requires a <head> or <body> element.");return t.appendChild(e),e})();return new Promise((r,t)=>{e.addEventListener("load",()=>{window.Airwallex?r():t(new Error("Failed to load Airwallex.js"))}),e.addEventListener("error",()=>{t(new Error("Failed to load Airwallex.js"))})})});return e.loadAirwallex=()=>t,e}({});
/* Airwallex @Charlie.Lang */
//# sourceMappingURL=airwallex.iife.js.map
{
"name": "airwallex-payment-elements",
"version": "0.0.58",
"version": "0.0.59",
"module": "lib/airwallex.es.js",

@@ -5,0 +5,0 @@ "types": "types/index.d.ts",

@@ -114,9 +114,9 @@ # airwallex-payment-elements

#### Create *cardNumber* | *expiry* | *cvc* | *paymentRequestButton* | *card* elements
#### Create *cardNumber* | *expiry* | *cvc* | *paymentRequestButton* | *card* | *wechat* | *dropin* elements
***When you select card element type you are actually adopt Drop-in integration***
***When you select dropin element type you are actually adopt Drop-in integration***
With Drop-in integration, those prebuilt UI components has been composed into a payment form, you can put it directly into you html page, and integrate with the rest your own components to render your checkout page.
With Drop-in integration, those prebuilt UI components has been composed into a payment form with all available payment methods, you can put it directly into you html page, and integrate with the rest your own components to render your checkout page.
With *cardNumber* | *expiry* | *cvc* | *paymentRequestButton* elements, they are just building blocks:
With *cardNumber* | *expiry* | *cvc* | *paymentRequestButton* | *wechat* elements, they are just building blocks:

@@ -134,3 +134,3 @@ > You can arrange with any order you want

```ts
export declare const createElement: (type: "cardNumber" | "expiry" | "cvc" | "paymentRequestButton" | "card" | "wechat", options?: ElementOptions | undefined) => ElementBase | null;
export declare const createElement: (type: 'cardNumber' | 'expiry' | 'cvc' | 'paymentRequestButton' | 'card' | 'wechat' | 'dropin', options?: ElementOptions | undefined) => ElementBase | null;
export interface Intent {

@@ -234,3 +234,3 @@ id: string;

export interface ElementBaseEvent {
type: 'cardNumber' | 'expiry' | 'cvc' | 'paymentRequestButton' | 'card' | 'wechat';
type: 'cardNumber' | 'expiry' | 'cvc' | 'paymentRequestButton' | 'card' | 'wechat' | 'dropin';
code: 'onReady' | 'onSubmit' | 'onSuccess' | 'onError' | 'onCancel' | 'onFocus' | 'onBlur' | 'onChange' | 'onClick';

@@ -237,0 +237,0 @@ complete: boolean;

@@ -11,7 +11,7 @@ ///<reference path='./baseElement.d.ts' />

createElement: (
type: 'cardNumber' | 'expiry' | 'cvc' | 'paymentRequestButton' | 'card',
type: 'cardNumber' | 'expiry' | 'cvc' | 'paymentRequestButton' | 'card' | 'wechat' | 'dropin',
options?: ElementOptions | undefined,
) => ElementBase | null;
destroyElement: (type: 'cardNumber' | 'expiry' | 'cvc' | 'paymentRequestButton' | 'card') => boolean;
getElement: (type: 'cardNumber' | 'expiry' | 'cvc' | 'paymentRequestButton' | 'card') => ElementBase | null;
destroyElement: (type: 'cardNumber' | 'expiry' | 'cvc' | 'paymentRequestButton' | 'card' | 'wechat' | 'dropin') => boolean;
getElement: (type: 'cardNumber' | 'expiry' | 'cvc' | 'paymentRequestButton' | 'card' | 'wechat' | 'dropin') => ElementBase | null;
confirmPaymentIntent: (clientSecret: string, data: ConfirmIntentData) => Promise<boolean | Intent>;

@@ -18,0 +18,0 @@ createPaymentMethod: (clientSecret: string, data: PaymentMethod) => Promise<boolean | PaymentMethodBase>;

@@ -7,3 +7,3 @@ import { ElementOptions, InitOptions } from 'airwallex-payment-elements';

interface ElementBaseEvent {
type: 'cardNumber' | 'expiry' | 'cvc';
type: 'cardNumber' | 'expiry' | 'cvc' | 'card' | 'wechat' | 'dropin';
code: 'onReady' | 'onSubmit' | 'onSuccess' | 'onError' | 'onCancel' | 'onFocus' | 'onBlur' | 'onChange';

@@ -10,0 +10,0 @@ complete: boolean;

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