Socket
Socket
Sign inDemoInstall

paypal-checkout-components

Package Overview
Dependencies
14
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.28 to 4.1.29

2

package.json
{
"name": "paypal-checkout-components",
"version": "4.1.28",
"version": "4.1.29",
"description": "PayPal Checkout components, for integrating checkout products.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -6,3 +6,3 @@ /* @flow */

import { getLogger, getLocale, getClientID, getEnv, getIntent, getCommit,
getVault, getPayPalDomain, getCurrency, getSDKMeta, isEligible, getBrowser,
getVault, getPayPalDomainRegex, getCurrency, getSDKMeta, isEligible, getBrowser,
createOrder, type OrderCreateRequest, type OrderGetResponse, type OrderCaptureResponse, type OrderAuthorizeResponse } from 'paypal-braintree-web-client/src';

@@ -64,3 +64,3 @@ import { ZalgoPromise } from 'zalgo-promise/src';

url: getButtonUrl(),
domain: getPayPalDomain(),
domain: getPayPalDomainRegex(),

@@ -71,4 +71,3 @@ contexts: {

},
scrolling: false,
listenForResize: true,

@@ -93,3 +92,4 @@

iframe: {
allowpaymentrequest: 'allowpaymentrequest'
allowpaymentrequest: 'allowpaymentrequest',
scrolling: 'no'
}

@@ -96,0 +96,0 @@ },

@@ -68,2 +68,6 @@ /* @flow */

if (!container) {
throw new Error(`Expected container`);
}
const getContainerDimensions = () => {

@@ -70,0 +74,0 @@ let cont = container;

/* @flow */
/* eslint max-lines: 0 */
import { getPayPalDomain, getLogger, getLocale, getEnv, getClientID, getCommit, getSDKMeta, isEligible } from 'paypal-braintree-web-client/src';
import { getPayPalDomainRegex, getLogger, getLocale, getEnv, getClientID, getCommit, getSDKMeta, isEligible } from 'paypal-braintree-web-client/src';
import { ZalgoPromise } from 'zalgo-promise/src';

@@ -22,5 +22,9 @@ import { create, CONSTANTS, PopupOpenError } from 'zoid/src';

scrolling: true,
attributes: {
iframe: {
scrolling: 'yes'
}
},
buildUrl(props) : string {
url(props) : string {
const { fundingSource } = props;

@@ -40,3 +44,3 @@ const fundingConfig = FUNDING_CONFIG[fundingSource];

domain: getPayPalDomain(),
domain: getPayPalDomainRegex(),

@@ -43,0 +47,0 @@ contexts: {

/* @flow */
import { buildPayPalUrl } from 'paypal-braintree-web-client/src';
import { getPayPalDomain } from 'paypal-braintree-web-client/src';

@@ -33,23 +33,23 @@ export const SESSION_LIFETIME = 5 * 60 * 1000;

export function getPayPalUrl() : string {
return buildPayPalUrl();
return getPayPalDomain();
}
export function getCheckoutUrl() : string {
return buildPayPalUrl(URI.CHECKOUT);
return `${ getPayPalDomain() }${ URI.CHECKOUT }`;
}
export function getButtonUrl() : string {
return buildPayPalUrl(URI.BUTTON);
return `${ getPayPalDomain() }${ URI.BUTTON }`;
}
export function getGuestUrl() : string {
return buildPayPalUrl(URI.GUEST);
return `${ getPayPalDomain() }${ URI.GUEST }`;
}
export function getCardUrl() : string {
return buildPayPalUrl(URI.CARD);
return `${ getPayPalDomain() }${ URI.CARD }`;
}
export function getAltPayUrl() : string {
return buildPayPalUrl(URI.ALTPAY);
return `${ getPayPalDomain() }${ URI.ALTPAY }`;
}

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc