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

@stripe/stripe-js

Package Overview
Dependencies
Maintainers
10
Versions
137
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.25.0 to 1.26.0

5

dist/pure.esm.js

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

name: 'stripe-js',
version: "1.25.0",
version: "1.26.0",
startTime: startTime

@@ -121,3 +121,4 @@ });

return stripe;
};
}; // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
var validateLoadParams = function validateLoadParams(params) {

@@ -124,0 +125,0 @@ var errorMessage = "invalid load parameters; expected object of shape\n\n {advancedFraudSignals: boolean}\n\nbut received\n\n ".concat(JSON.stringify(params), "\n");

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

name: 'stripe-js',
version: "1.25.0",
version: "1.26.0",
startTime: startTime

@@ -125,3 +125,4 @@ });

return stripe;
};
}; // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
var validateLoadParams = function validateLoadParams(params) {

@@ -128,0 +129,0 @@ var errorMessage = "invalid load parameters; expected object of shape\n\n {advancedFraudSignals: boolean}\n\nbut received\n\n ".concat(JSON.stringify(params), "\n");

4

dist/stripe.esm.js

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

name: 'stripe-js',
version: "1.25.0",
version: "1.26.0",
startTime: startTime

@@ -105,3 +105,3 @@ });

return stripe;
};
}; // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types

@@ -108,0 +108,0 @@ // own script injection.

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

name: 'stripe-js',
version: "1.25.0",
version: "1.26.0",
startTime: startTime

@@ -109,3 +109,3 @@ });

return stripe;
};
}; // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types

@@ -112,0 +112,0 @@ // own script injection.

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

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

@@ -135,2 +135,3 @@ import {Stripe, StripeConstructor} from '../types';

// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export const validateLoadParams = (params: any): LoadParams => {

@@ -137,0 +138,0 @@ const errorMessage = `invalid load parameters; expected object of shape

@@ -65,2 +65,4 @@ import {Metadata, MetadataParam, Address} from './shared';

acss_debit?: PaymentMethod.AcssDebit;
us_bank_account?: PaymentMethod.UsBankAccount;
}

@@ -270,2 +272,24 @@

}
export interface UsBankAccount {
/**
* Customer’s bank account number.
*/
account_number: string;
/**
* The routing transit number for the bank account.
*/
routing_number: string;
/**
* The type of entity that holds the account. This can be either `individual` or `company`.
*/
account_holder_type: string;
/**
* Account type: checkings or savings. Defaults to checking if omitted.
*/
account_type: string;
}
}

@@ -272,0 +296,0 @@

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

| CreatePaymentMethodFpxData
| CreatePaymentMethodUsBankAccountData
| CreatePaymentMethodSepaDebitData

@@ -447,2 +448,51 @@ | CreatePaymentMethodSofortData

export interface CreatePaymentMethodUsBankAccountData
extends PaymentMethodCreateParams {
type: 'us_bank_account';
/**
* Can be omitted as Stripe will help to collect bank account details and verification.
* Refer to our [integration guide](https://stripe.com/docs/payments/acss-debit/accept-a-payment) for more details.
*/
us_bank_account: {
/**
* Customer’s bank account number.
*/
account_number: string;
/**
* The routing transit number for the bank account.
*/
routing_number: string;
/**
* The type of entity that holds the account. This can be either `individual` or `company`.
*/
account_holder_type: string;
/**
* Account type: checkings or savings. Defaults to checking if omitted.
*/
account_type?: 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;
}
export interface CollectBankAccountPaymentMethodData {
/**
* 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;
}
/**

@@ -1212,2 +1262,13 @@ * Data to be sent with a `stripe.confirmBancontactPayment` request.

export interface ConfirmUsBankAccountPaymentData
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<CreatePaymentMethodUsBankAccountData, 'type'>;
}
/**

@@ -1248,1 +1309,15 @@ * Data to be sent with a `stripe.confirmPayment` request.

}
/**
* Data to be sent with a `stripe.collectBankAccountForPayment` request.
*/
export interface CollectBankAccountForPaymentOptions {
/**
* The payment method type for the bank account details (e.g. `us_bank_account`)
*/
payment_method_type: string;
/**
* Payment method specific data to be sent with the request (billing details)
*/
payment_method_data: CollectBankAccountPaymentMethodData;
}

@@ -13,2 +13,4 @@ import {SetupIntentConfirmParams} from '../api';

CreatePaymentMethodBacsDebitData,
CreatePaymentMethodUsBankAccountData,
CollectBankAccountPaymentMethodData,
} from './payment-intents';

@@ -190,1 +192,26 @@

}
export interface ConfirmUsBankAccountSetupData
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<CreatePaymentMethodUsBankAccountData, 'type'>;
}
/**
* Data to be sent with a `stripe.collectBankAccountForSetup` request.
*/
export interface CollectBankAccountForSetupOptions {
/**
* The payment method type for the bank account details (e.g. `us_bank_account`)
*/
payment_method_type: string;
/**
* Payment method specific data to be sent with the request (billing details)
*/
payment_method_data: CollectBankAccountPaymentMethodData;
}

@@ -93,2 +93,15 @@ import * as api from '../api';

/**
* Use `stripe.confirmUsBankAccountPayment` in the [Accept a payment](https://stripe.com/docs/payments/ach-debit/accept-a-payment) flow for the [ACH Direct Debit]((https://stripe.com/docs/payments/ach-debit) payment method to record the customer’s authorization for payment.
*
* When you confirm a [PaymentIntent](https://stripe.com/docs/api/payment_intents), it needs to have an attached PaymentMethod.
* Use `stripe.collectBankAccountForPayment` to collect and attach a [PaymentMethod](https://stripe.com/docs/api/payment_methods), or provide bank account details using the `data` parameter if a `PaymentMethod` was not already provided.
*
* @docs https://stripe.com/docs/js/payment_intents/confirm_us_bank_account_payment
*/
confirmUsBankAccountPayment(
clientSecret: string,
data?: paymentIntents.ConfirmUsBankAccountPaymentData
): Promise<PaymentIntentResult>;
/**
* Use `stripe.confirmAlipayPayment` in the [Alipay Payments](https://stripe.com/docs/payments/alipay) with Payment Methods flow when the customer submits your payment form.

@@ -498,2 +511,13 @@ * When called, it will confirm the [PaymentIntent](https://stripe.com/docs/api/payment_intents) with `data` you provide, and it will automatically redirect the customer to authorize the transaction.

/**
* Use `stripe.collectBankAccountForPayment` in the [Accept a payment flow](https://stripe.com/docs/payments/ach-debit/accept-a-payment) for the [ACH Direct Debit](https://stripe.com/docs/payments/ach-debit)
* payment method to collect the customer’s bank account in your payment form.
*
* @docs https://stripe.com/docs/js/payment_intents/collect_bank_account_for_payment
*/
collectBankAccountForPayment(
clientSecret: string,
options: paymentIntents.CollectBankAccountForPaymentOptions
): Promise<PaymentIntentResult>;
/**
* Use stripe.createPaymentMethod to convert payment information collected by elements into a [PaymentMethod](https://stripe.com/docs/api/payment_methods) object that you safely pass to your server to use in an API call.

@@ -568,2 +592,15 @@ *

/**
* Use `stripe.confirmUsBankAccountSetup` in the [Save bank details](https://stripe.com/docs/payments/ach-debit/set-up-payment) flow for the [ACH Direct Debit payment](https://stripe.com/docs/payments/ach-debit) method to record the customer’s authorization for future payments.
*
* When you confirm a [SetupIntent](https://stripe.com/docs/api/setup_intents), it needs to have an attached PaymentMethod.
* Use `stripe.collectBankAccountForSetup` to collect and attach a [PaymentMethod](https://stripe.com/docs/api/payment_methods), or provide bank account details using the `data` parameter if a `PaymentMethod` was not already provided.
*
* @docs https://stripe.com/docs/js/setup_intents/confirm_us_bank_account_setup
*/
confirmUsBankAccountSetup(
clientSecret: string,
data?: setupIntents.ConfirmUsBankAccountSetupData
): Promise<SetupIntentResult>;
/**
* Requires beta access:

@@ -749,2 +786,13 @@ * Contact [Stripe support](https://support.stripe.com/) for more information.

/**
* Use `stripe.collectBankAccountForSetup` in the [Save bank details](https://stripe.com/docs/payments/ach-debit/set-up-payment) flow for the [ACH Direct Debit](https://stripe.com/docs/payments/ach-debit)
* payment method to collect the customer’s bank account in your payment form.
*
* @docs https://stripe.com/docs/js/setup_intents/collect_bank_account_for_setup
*/
collectBankAccountForSetup(
clientSecret: string,
options: setupIntents.CollectBankAccountForSetupOptions
): Promise<SetupIntentResult>;
/**
* Retrieve a [SetupIntent](https://stripe.com/docs/api/setup_intents) using its client secret.

@@ -751,0 +799,0 @@ *

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