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

@types/paypal-checkout-components

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/paypal-checkout-components - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

19

paypal-checkout-components/index.d.ts

@@ -8,3 +8,3 @@ // Type definitions for paypal-checkout-components 4.0

import {
Button
ButtonRenderer, FundingOption
} from './modules/button';

@@ -24,3 +24,3 @@

AuthorizationData,
AuthorizationTokenizePayload,
AuthorizationResponse,
CancellationData,

@@ -34,7 +34,6 @@ CreditFinancingOptions,

ShippingOptionType,
TokenizePayload,
TokenizePayloadDetails,
AuthorizationResponseDetails,
} from './modules/callback-data';
export const Button: Button;
export const Button: ButtonRenderer;

@@ -44,3 +43,8 @@ export {

AuthorizationData,
AuthorizationTokenizePayload,
AuthorizationResponse,
AuthorizationResponse as AuthorizationTokenizePayload, // maintain backwards compatibility
AuthorizationResponse as TokenizePayload, // maintain backwards compatibility
AuthorizationResponseDetails,
AuthorizationResponseDetails as TokenizePayloadDetails, // maintain backwards compatibility
ButtonRenderer,
ButtonColorOption,

@@ -55,2 +59,3 @@ ButtonLabelOption,

FlowType,
FundingOption as FUNDING,
Intent,

@@ -61,6 +66,4 @@ LineItem,

ShippingOptionType,
TokenizePayload,
TokenizePayloadDetails,
};
export as namespace paypal;
import { Environment, ButtonStyle } from './configuration';
import { AuthorizationData, AuthorizationTokenizePayload, CancellationData } from './callback-data';
import { AuthorizationData, AuthorizationResponse, CancellationData } from './callback-data';
export interface Button {
export enum FundingOption {
CREDIT,
CARD,
VENMO,
ELV
}
export interface ButtonRenderer {
render(

@@ -13,3 +20,3 @@ options: {

payment?: () => Promise<string>;
onAuthorize: (data: AuthorizationData, actions: object) => Promise<AuthorizationTokenizePayload>;
onAuthorize: (data: AuthorizationData, actions: object) => Promise<AuthorizationResponse>;
onCancel?: (data: CancellationData, actions: object) => void;

@@ -22,2 +29,7 @@ onError?: (error: string) => void;

funding?: {
allowed?: FundingOption[];
disallowed?: FundingOption[];
};
sessionID?: string;

@@ -24,0 +36,0 @@ buttonSessionID?: string;

@@ -181,3 +181,3 @@ export enum LineItemKind {

export interface TokenizePayloadDetails {
export interface AuthorizationResponseDetails {
email: string;

@@ -206,3 +206,3 @@ payerId: string;

export interface TokenizePayload {
export interface AuthorizationResponse {
/**

@@ -221,3 +221,3 @@ * The payment method nonce.

*/
details: TokenizePayloadDetails;
details: AuthorizationResponseDetails;
}

@@ -272,18 +272,1 @@

}
export interface AuthorizationTokenizePayload {
/**
* The payment method nonce.
*/
nonce: string;
/**
* The payment method type, always `PayPalAccount`.
*/
type: string;
/**
* Additional PayPal account details.
*/
details: TokenizePayloadDetails;
}
{
"name": "@types/paypal-checkout-components",
"version": "4.0.0",
"version": "4.0.1",
"description": "TypeScript definitions for paypal-checkout-components",

@@ -22,4 +22,4 @@ "license": "MIT",

"dependencies": {},
"typesPublisherContentHash": "5583d512b996851d10cc8b59bacbdc5c19ed8d2ee715c6f95f9ffa0d5f1bdc6c",
"typesPublisherContentHash": "513c7b4a637fd118b855198d6efcd7bcd772f05a9fdb011fd0a143b18a90223d",
"typeScriptVersion": "3.1"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Mon, 06 Jul 2020 22:06:48 GMT
* Last updated: Fri, 28 Aug 2020 10:08:11 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: `paypal`

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