Socket
Socket
Sign inDemoInstall

@stripe/stripe-js

Package Overview
Dependencies
Maintainers
18
Versions
126
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 3.3.0 to 3.4.0

7

dist/stripe-js/payment-intents.d.ts

@@ -1436,2 +1436,9 @@ import {

/**
* Optional `id` of an existing [ConfirmationToken](https://stripe.com/docs/api/confirmation_tokens).
*
* @docs https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-confirmation_token
*/
confirmation_token?: string;
/**
* Optional `id` of an existing [PaymentMethod](https://stripe.com/docs/api/payment_methods).

@@ -1438,0 +1445,0 @@ *

55

dist/stripe-js/setup-intents.d.ts

@@ -1,2 +0,2 @@

import {SetupIntentConfirmParams} from '../api';
import {PaymentMethodCreateParams, SetupIntentConfirmParams} from '../api';

@@ -21,2 +21,55 @@ import {

/**
* Data to be sent with a `stripe.confirmSetup` request.
* Refer to the [Setup Intents API](https://stripe.com/docs/api/setup_intents/confirm) for a full list of parameters.
*/
export interface ConfirmSetupData extends SetupIntentConfirmParams {
/**
* The url your customer will be directed to after they complete payment.
*/
return_url: string;
/**
* An object to attach additional billing_details to the PaymentMethod created via Elements.
*
* @docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_data
*/
payment_method_data?: {
/**
* The customer's billing details. Details collected by Elements will override values passed here.
* Billing fields that are omitted in the Payment Element via the `fields` option required.
*
* @docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_data-billing_details
*/
billing_details?: PaymentMethodCreateParams.BillingDetails;
/**
* Requires beta access:
* Contact [Stripe support](https://support.stripe.com/) for more information.
*
* Specifies if the PaymentMethod should be redisplayed when using the Saved Payment Method feature
*/
allow_redisplay?: 'always' | 'limited' | 'unspecified';
};
/**
* Optional `id` of an existing [ConfirmationToken](https://stripe.com/docs/api/confirmation_tokens).
*
* @docs https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-confirmation_token
*/
confirmation_token?: string;
/**
* Optional `id` of an existing [PaymentMethod](https://stripe.com/docs/api/payment_methods).
*
* @docs https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-payment_method
*/
payment_method?: string;
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}
/**
* Data to be sent with a `stripe.confirmCardSetup` request.

@@ -23,0 +76,0 @@ * Refer to the [Setup Intents API](https://stripe.com/docs/api/setup_intents/confirm) for a full list of parameters.

6

package.json
{
"name": "@stripe/stripe-js",
"version": "3.3.0",
"version": "3.4.0",
"description": "Stripe.js loading utility",

@@ -12,4 +12,5 @@ "repository": "github:stripe/stripe-js",

"scripts": {
"test": "yarn lint && yarn test:unit && yarn test:types && yarn typecheck",
"test": "yarn lint && yarn test:unit && yarn test:package-types && yarn test:types && yarn typecheck",
"test:unit": "jest",
"test:package-types": "attw --pack . --entrypoints ./lib ./pure",
"test:types": "zx ./tests/types/scripts/test.mjs",

@@ -43,2 +44,3 @@ "lint": "eslint '{src,types}/**/*.{ts,js}' && yarn prettier-check",

"devDependencies": {
"@arethetypeswrong/cli": "^0.15.3",
"@babel/core": "^7.7.2",

@@ -45,0 +47,0 @@ "@babel/preset-env": "^7.7.1",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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