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

@stripe/stripe-js

Package Overview
Dependencies
Maintainers
20
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.14.0 to 1.15.0

2

dist/pure.esm.js

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

name: 'stripe-js',
version: "1.14.0",
version: "1.15.0",
startTime: startTime

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

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

name: 'stripe-js',
version: "1.14.0",
version: "1.15.0",
startTime: startTime

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

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

name: 'stripe-js',
version: "1.14.0",
version: "1.15.0",
startTime: startTime

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

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

name: 'stripe-js',
version: "1.14.0",
version: "1.15.0",
startTime: startTime

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

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

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

@@ -182,5 +182,10 @@ declare module '@stripe/stripe-js' {

/**
* Type of the next action to perform, one of `redirect_to_url` or `use_stripe_sdk`.
* Type of the next action to perform, one of `redirect_to_url`, `use_stripe_sdk` or `wechat_pay_display_qr_code`.
*/
type: string;
/**
* Wechat Pay display qrcode
*/
wechat_pay_display_qr_code?: NextAction.WechatPayDisplayQrCode;
}

@@ -200,2 +205,13 @@

}
interface WechatPayDisplayQrCode {
/**
* Render and display `paymentIntent.next_action.wechat_pay_display_qr_code.data` as a QR code on your checkout page.
*/
data: string;
/**
* Use `paymentIntent.next_action.wechat_pay_display_qr_code.image_data_url` as an image source.
*/
image_data_url: string;
}
}

@@ -202,0 +218,0 @@

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

/**
* Requires beta access:
* Contact [Stripe support](https://support.stripe.com/) for more information.
*
* Use `stripe.confirmWechatPayPayment` in the [Wechat Pay Payments](https://stripe.com/docs/payments/wechat-pay) with Payment Methods flow when the customer submits your payment form.
* When called, it will confirm the [PaymentIntent](https://stripe.com/docs/api/payment_intents) with `data` you provide.
* Refer to our [integration guide](https://stripe.com/docs/payments/wechat-pay/accept-a-payment) for more details.
*
* When you confirm a `PaymentIntent`, it needs to have an attached [PaymentMethod](https://stripe.com/docs/api/payment_methods).
* In addition to confirming the `PaymentIntent`, this method can automatically create and attach a new PaymentMethod for you.
* If you have already attached a `PaymentMethod` you can call this method without needing to provide any additional data.
*
* @docs https://stripe.com/docs/js/payment_intents/confirm_wechat_pay_payment
*/
confirmWechatPayPayment(
clientSecret: string,
data?: ConfirmWechatPayPaymentData,
options?: ConfirmWechatPayPaymentOptions
): Promise<PaymentIntentResult>;
/**
* Use `stripe.handleCardAction` in the Payment Intents API [manual confirmation](https://stripe.com/docs/payments/payment-intents/web-manual) flow to handle a [PaymentIntent](https://stripe.com/docs/api/payment_intents) with the `requires_action` status.

@@ -637,2 +657,12 @@ * It will throw an error if the `PaymentIntent` has a different status.

retrieveSource(source: RetrieveSourceParam): Promise<SourceResult>;
/////////////////////////////
/// Analytics
///
/////////////////////////////
/**
* Use `stripe.registerAppInfo` to register a frontend open source library.
*/
registerAppInfo(wrapperLibrary: WrapperLibrary): void;
}

@@ -660,2 +690,25 @@

interface WrapperLibrary {
/**
* Your library’s name, maximum length is 30
*/
name: string;
/**
* Required for Stripe Verified Partners, optional otherwise
* Your Partner ID from the Partners section of the Dashboard
*/
partner_id?: string;
/**
* Your library's version, in the format of x.x.x
*/
version?: string;
/**
* The URL for your library's website with your contact details
*/
url?: string;
}
/**

@@ -662,0 +715,0 @@ * Use `Stripe(publishableKey, options?)` to create an instance of the `Stripe` object.

@@ -20,3 +20,4 @@ declare module '@stripe/stripe-js' {

| CreatePaymentMethodSepaDebitData
| CreatePaymentMethodSofortData;
| CreatePaymentMethodSofortData
| CreatePaymentMethodWechatPayData;

@@ -27,2 +28,10 @@ interface CreatePaymentMethodAlipayData extends PaymentMethodCreateParams {

interface CreatePaymentMethodWechatPayData extends PaymentMethodCreateParams {
/**
* Requires beta access:
* Contact [Stripe support](https://support.stripe.com/) for more information.
*/
type: 'wechat_pay';
}
interface CreatePaymentMethodAfterpayClearpayData

@@ -747,2 +756,38 @@ extends PaymentMethodCreateParams {

/**
* Data to be sent with a `stripe.confirmWechatPayPayment` request.
* Refer to the [Payment Intents API](https://stripe.com/docs/api/payment_intents/confirm) for a full list of parameters.
*/
interface ConfirmWechatPayPaymentData extends PaymentIntentConfirmParams {
/**
* The `id` of an existing [PaymentMethod](https://stripe.com/docs/api/payment_methods).
* This field is optional if a `PaymentMethod` has already been attached to this `PaymentIntent` or a new `PaymentMethod` will be created.
*
* @recommended
*/
payment_method?: string | Omit<CreatePaymentMethodWechatPayData, 'type'>;
/**
* An object containing payment-method-specific configuration to confirm the [PaymentIntent](https://stripe.com/docs/api/payment_intents) with.
*/
payment_method_options?: {
/**
* Configuration for this wechat payment.
*/
wechat_pay: {
client?: 'web';
};
};
}
/**
* An options object to control the behavior of `stripe.confirmWechatPayPayment`.
*/
interface ConfirmWechatPayPaymentOptions {
/**
* This must be set to false, and you are responsible for handling the next_action after confirming the PaymentIntent.
*/
handleActions: boolean;
}
/**
* Data to be sent with a `stripe.confirmAuBecsDebitPayment` request.

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

@@ -218,3 +218,4 @@ declare module '@stripe/stripe-js' {

* An array of wallet strings.
* Use this option to disable Google Pay and/or Apple Pay.
* Can be one or more of `applePay`, `googlePay` and `browserCard`.
* Use this option to disable Google Pay, Apple Pay and/or browser-saved cards.
*/

@@ -221,0 +222,0 @@ disableWallets?: PaymentRequestWallet[];

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