Socket
Socket
Sign inDemoInstall

@stripe/stripe-js

Package Overview
Dependencies
Maintainers
16
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stripe/stripe-js - npm Package Compare versions

Comparing version 1.50.0 to 1.51.0

2

dist/pure.esm.js

@@ -57,3 +57,3 @@ function _typeof(obj) {

name: 'stripe-js',
version: "1.50.0",
version: "1.51.0",
startTime: startTime

@@ -60,0 +60,0 @@ });

@@ -61,3 +61,3 @@ 'use strict';

name: 'stripe-js',
version: "1.50.0",
version: "1.51.0",
startTime: startTime

@@ -64,0 +64,0 @@ });

@@ -41,3 +41,3 @@ var V3_URL = 'https://js.stripe.com/v3';

name: 'stripe-js',
version: "1.50.0",
version: "1.51.0",
startTime: startTime

@@ -44,0 +44,0 @@ });

@@ -45,3 +45,3 @@ 'use strict';

name: 'stripe-js',
version: "1.50.0",
version: "1.51.0",
startTime: startTime

@@ -48,0 +48,0 @@ });

{
"name": "@stripe/stripe-js",
"version": "1.50.0",
"version": "1.51.0",
"description": "Stripe.js loading utility",

@@ -5,0 +5,0 @@ "main": "dist/stripe.js",

@@ -675,2 +675,7 @@ import {

clientSecret?: string;
/**
* Either use mode or clientSecret when creating an Elements group
*/
mode?: never;
}

@@ -699,2 +704,9 @@

*/
setupFutureUsage?: 'off_session' | 'on_session';
/**
* Indicates that you intend to make future payments with this PaymentIntent’s payment method.
*
* @docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage
*/
setup_future_usage?: 'off_session' | 'on_session';

@@ -707,2 +719,9 @@

*/
captureMethod?: 'manual' | 'automatic';
/**
* Controls when the funds will be captured from the customer’s account.
*
* @docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-capture_method
*/
capture_method?: 'manual' | 'automatic';

@@ -715,5 +734,31 @@

*/
paymentMethodTypes?: string[];
/**
* Instead of using automatic payment methods, declare specific payment methods to enable.
*
* @docs https://stripe.com/docs/payments/payment-methods/overview
*/
payment_method_types?: string[];
/**
* Allows PaymentMethods to be created from the Elements instance.
*/
paymentMethodCreation?: 'manual';
/**
* Allows PaymentMethods to be created from the Elements instance.
*/
payment_method_creation?: 'manual';
/**
* Either use mode or clientSecret when creating an Elements group
*/
clientSecret?: never;
}
export type StripeElementsOptions =
| StripeElementsOptionsClientSecret
| StripeElementsOptionsMode;
/*

@@ -758,2 +803,9 @@ * Updatable options for an `Elements` instance

*/
setupFutureUsage?: 'off_session' | 'on_session';
/**
* Indicates that you intend to make future payments with this PaymentIntent’s payment method.
*
* @docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage
*/
setup_future_usage?: 'off_session' | 'on_session';

@@ -766,2 +818,9 @@

*/
captureMethod?: 'manual' | 'automatic';
/**
* Controls when the funds will be captured from the customer’s account.
*
* @docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-capture_method
*/
capture_method?: 'manual' | 'automatic';

@@ -775,2 +834,9 @@

payment_method_types?: string[];
/**
* Instead of using automatic payment methods, declare specific payment methods to enable.
*
* @docs https://stripe.com/docs/payments/payment-methods/overview
*/
paymentMethodTypes?: string[];
}

@@ -777,0 +843,0 @@

@@ -58,3 +58,3 @@ export type StripePaymentMethodMessagingElement = {

*/
paymentMethods: Array<'afterpay_clearpay' | 'klarna'>;
paymentMethods: Array<'afterpay_clearpay' | 'klarna' | 'affirm'>;

@@ -61,0 +61,0 @@ /**

@@ -23,2 +23,3 @@ import {

| CreatePaymentMethodBancontactData
| CreatePaymentMethodBlikData
| CreatePaymentMethodBoletoData

@@ -99,2 +100,11 @@ | CreatePaymentMethodCardData

export interface CreatePaymentMethodBlikData extends PaymentMethodCreateParams {
type: 'blik';
/**
* Details about the BLIK pament method. Currently there are no supported child attributes for this field.
*/
blik?: {}; // eslint-disable-line @typescript-eslint/ban-types
}
export interface CreatePaymentMethodBoletoData

@@ -548,2 +558,31 @@ extends PaymentMethodCreateParams {

/**
* Data to be sent with a `stripe.ConfirmBlikPayment` request.
* Refer to the [Payment Intents API](https://stripe.com/docs/api/payment_intents/confirm) for a full list of parameters.
*/
export interface ConfirmBlikPaymentData extends PaymentIntentConfirmParams {
/**
* Either the `id` of an existing [PaymentMethod](https://stripe.com/docs/api/payment_methods), or an object containing data to create a `PaymentMethod` with.
* This field is optional if a `PaymentMethod` has already been attached to this `PaymentIntent`.
*
* @recommended
*/
payment_method?: string | Omit<CreatePaymentMethodBlikData, 'type'>;
/**
* An object containing payment-method-specific configuration to confirm the [PaymentIntent](https://stripe.com/docs/api/payment_intents) with.
*/
payment_method_options: {
/**
* A configuration for this BLIK payment.
*/
blik: {
/**
* Your customer's 6-digit BLIK code.
*/
code: string;
};
};
}
/**
* Data to be sent with a `stripe.confirmBoletoPayment` request.

@@ -616,2 +655,12 @@ * Refer to the [Payment Intents API](https://stripe.com/docs/api/payment_intents/confirm) for a full list of parameters.

/**
* An options object to control the behavior of `stripe.confirmBlikPayment`.
*/
export interface ConfirmBlikPaymentOptions {
/**
* Set this to false if you want to manually determine if the confirmation has succeeded or failed.
*/
handleActions?: boolean;
}
/**
* Data to be sent with a `stripe.confirmCardPayment` request.

@@ -618,0 +667,0 @@ * Refer to the [Payment Intents API](https://stripe.com/docs/api/payment_intents/confirm) for a full list of parameters.

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

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