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

@stripe/stripe-js

Package Overview
Dependencies
Maintainers
13
Versions
131
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.7.0 to 1.8.0

dist/pure.esm.js

2

dist/pure.js

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

name: 'stripe-js',
version: "1.7.0"
version: "1.8.0"
});

@@ -82,0 +82,0 @@ };

@@ -61,3 +61,3 @@ function _toConsumableArray(arr) {

name: 'stripe-js',
version: "1.7.0"
version: "1.8.0"
});

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

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

name: 'stripe-js',
version: "1.7.0"
version: "1.8.0"
});

@@ -68,0 +68,0 @@ };

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

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

@@ -45,2 +45,7 @@ # Stripe.js ES Module

If you have deployed a
[Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/Security/CSP),
make sure to
[include Stripe.js in your directives](https://stripe.com/docs/security/guide#content-security-policy).
## TypeScript support

@@ -47,0 +52,0 @@

@@ -110,2 +110,3 @@ declare module '@stripe/stripe-js' {

| 'es'
| 'es-419'
| 'et'

@@ -112,0 +113,0 @@ | 'fi'

@@ -225,2 +225,3 @@ ///<reference path='./elements/card.d.ts' />

| 'es'
| 'es-419'
| 'et'

@@ -227,0 +228,0 @@ | 'fi'

@@ -263,2 +263,20 @@ ///<reference path='./checkout.d.ts' />

/**
* Use `stripe.confirmBacsDebitSetup` in the [Bacs Direct Debit Payments](https://stripe.com/docs/payments/payment-methods/bacs-debit) flow when the customer submits your payment form.
* When called, it will confirm the [SetupIntent](https://stripe.com/docs/api/setup_intents) with `data` you provide.
* Note that there are some additional requirements to this flow that are not covered in this reference.
* Refer to our [integration guide](https://stripe.com/docs/payments/payment-methods/bacs-debit) for more details.
*
* When you confirm a `SetupIntent`, it needs to have an attached [PaymentMethod](https://stripe.com/docs/api/payment_methods).
* In addition to confirming the `SetupIntent`, this method can automatically create and attach a new `PaymentMethod` for you.
* It can also be called with an existing `PaymentMethod`, or if you have already attached a `PaymentMethod` you can call this method without needing to provide any additional data.
* These use cases are detailed in the sections that follow.
*
* @docs https://stripe.com/docs/js/setup_intents/confirm_bacs_debit_setup
*/
confirmBacsDebitSetup(
clientSecret: string,
data?: ConfirmBacsDebitSetupData
): Promise<{setupIntent?: SetupIntent; error?: StripeError}>;
/**
* Use `stripe.confirmCardSetup` in the [Setup Intents API flow](https://stripe.com/docs/payments/save-and-reuse) when the customer submits your payment form.

@@ -480,2 +498,3 @@ * When called, it will confirm the [SetupIntent](https://stripe.com/docs/api/setup_intents) with `data` you provide and carry out 3DS or other next actions if they are required.

| 'es'
| 'es-419'
| 'et'

@@ -482,0 +501,0 @@ | 'fi'

@@ -167,2 +167,35 @@ declare module '@stripe/stripe-js' {

interface CreatePaymentMethodBacsDebitData extends PaymentMethodCreateParams {
type: 'bacs_debit';
bacs_debit: {
/**
* A sort code.
*/
sort_code: string;
/**
* An account number.
*/
account_number: string;
};
/*
* The customer's billing details.
* `name`, `email`, and `address` are required.
*
* @docs https://stripe.com/docs/api/payment_methods/create#create_payment_method-billing_details
*/
billing_details: PaymentMethodCreateParams.BillingDetails & {
name: string;
email: string;
address: PaymentMethodCreateParams.BillingDetails.Address & {
line1: string;
city: string;
country: string;
postal_code: string;
};
};
}
/**

@@ -169,0 +202,0 @@ * Data to be sent with a `stripe.confirmBancontactPayment` request.

@@ -54,2 +54,16 @@ declare module '@stripe/stripe-js' {

}
/**
* Data to be sent with a `stripe.confirmBacsDebitSetup` request.
* Refer to the [Setup Intents API](https://stripe.com/docs/api/setup_intents/confirm) for a full list of parameters.
*/
interface ConfirmBacsDebitSetupData extends SetupIntentConfirmParams {
/*
* 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 `SetupIntent`.
*
* @recommended
*/
payment_method?: string | Omit<CreatePaymentMethodBacsDebitData, 'type'>;
}
}
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