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.6.0 to 1.7.0

2

dist/pure.js

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

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

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

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

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

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

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

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

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

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

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

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

/**
* Use `stripe.confirmBancontactPayment` in the [Bancontact Payments with Payment Methods](https://stripe.com/docs/payments/bancontact#web) flow when the customer submits your payment form.
* When called, it will confirm the `PaymentIntent` with `data` you provide, and it will automatically redirect the customer to the authorize the transaction.
* Once authorization is complete, the customer will be redirected back to your specified `return_url`.
*
* 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_bancontact_payment
*/
confirmBancontactPayment(
clientSecret: string,
data?: ConfirmBancontactPaymentData,
options?: ConfirmBancontactPaymentOptions
): Promise<{paymentIntent?: PaymentIntent; error?: StripeError}>;
/**
* Use `stripe.confirmCardPayment` when the customer submits your payment form.

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

/**
* Use `stripe.confirmEpsPayment` in the [EPS Payments with Payment Methods](https://stripe.com/docs/payments/eps#web) flow when the customer submits your payment form.
* When called, it will confirm the `PaymentIntent` with `data` you provide, and it will automatically redirect the customer to the authorize the transaction.
* Once authorization is complete, the customer will be redirected back to your specified `return_url`.
*
* 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_eps_payment
*/
confirmEpsPayment(
clientSecret: string,
data?: ConfirmEpsPaymentData,
options?: ConfirmEpsPaymentOptions
): Promise<{paymentIntent?: PaymentIntent; error?: StripeError}>;
/**
* Use `stripe.confirmFpxPayment` in the [FPX Payments with Payment Methods](https://stripe.com/docs/payments/fpx#web) flow when the customer submits your payment form.

@@ -101,2 +135,19 @@ * When called, it will confirm the `PaymentIntent` with `data` you provide, and it will automatically redirect the customer to the authorize the transaction.

/**
* Use `stripe.confirmGiropayPayment` in the [giropay Payments with Payment Methods](https://stripe.com/docs/payments/giropay#web) flow when the customer submits your payment form.
* When called, it will confirm the `PaymentIntent` with `data` you provide, and it will automatically redirect the customer to the authorize the transaction.
* Once authorization is complete, the customer will be redirected back to your specified `return_url`.
*
* 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_giropay_payment
*/
confirmGiropayPayment(
clientSecret: string,
data?: ConfirmGiropayPaymentData,
options?: ConfirmGiropayPaymentOptions
): Promise<{paymentIntent?: PaymentIntent; error?: StripeError}>;
/**
* Use `stripe.confirmIdealPayment` in the [iDEAL Payments with Payment Methods](https://stripe.com/docs/payments/ideal) flow when the customer submits your payment form.

@@ -119,2 +170,19 @@ * When called, it will confirm the `PaymentIntent` with `data` you provide, and it will automatically redirect the customer to the authorize the transaction.

/**
* Use `stripe.confirmP24Payment` in the [Przelewy24 Payments with Payment Methods](https://stripe.com/docs/payments/p24#web) flow when the customer submits your payment form.
* When called, it will confirm the `PaymentIntent` with `data` you provide, and it will automatically redirect the customer to the authorize the transaction.
* Once authorization is complete, the customer will be redirected back to your specified `return_url`.
*
* 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_p24_payment
*/
confirmP24Payment(
clientSecret: string,
data?: ConfirmP24PaymentData,
options?: ConfirmP24PaymentOptions
): Promise<{paymentIntent?: PaymentIntent; error?: StripeError}>;
/**
* Use `stripe.confirmSepaDebitPayment` in the [SEPA Direct Debit Payments](https://stripe.com/docs/payments/sepa-debit) with Payment Methods flow when the customer submits your payment form.

@@ -121,0 +189,0 @@ * When called, it will confirm the [PaymentIntent](https://stripe.com/docs/api/payment_intents) with `data` you provide.

@@ -7,7 +7,26 @@ declare module '@stripe/stripe-js' {

| CreatePaymentMethodAuBecsDebitData
| CreatePaymentMethodBancontactData
| CreatePaymentMethodCardData
| CreatePaymentMethodEpsData
| CreatePaymentMethodGiropayData
| CreatePaymentMethodIdealData
| CreatePaymentMethodP24Data
| CreatePaymentMethodFpxData
| CreatePaymentMethodSepaDebitData;
interface CreatePaymentMethodBancontactData
extends PaymentMethodCreateParams {
type: 'bancontact';
/*
* The customer's billing details.
* `name` is required.
*
* @docs https://stripe.com/docs/api/payment_methods/create#create_payment_method-billing_details
*/
billing_details: PaymentMethodCreateParams.BillingDetails & {
name: string;
};
}
interface CreatePaymentMethodCardData extends PaymentMethodCreateParams {

@@ -19,2 +38,16 @@ type: 'card';

interface CreatePaymentMethodEpsData extends PaymentMethodCreateParams {
type: 'eps';
/*
* The customer's billing details.
* `name` is required.
*
* @docs https://stripe.com/docs/api/payment_methods/create#create_payment_method-billing_details
*/
billing_details: PaymentMethodCreateParams.BillingDetails & {
name: string;
};
}
interface CreatePaymentMethodFpxData extends PaymentMethodCreateParams {

@@ -33,2 +66,16 @@ type: 'fpx';

interface CreatePaymentMethodGiropayData extends PaymentMethodCreateParams {
type: 'giropay';
/*
* The customer's billing details.
* `name` is required.
*
* @docs https://stripe.com/docs/api/payment_methods/create#create_payment_method-billing_details
*/
billing_details: PaymentMethodCreateParams.BillingDetails & {
name: string;
};
}
interface CreatePaymentMethodIdealData extends PaymentMethodCreateParams {

@@ -47,2 +94,16 @@ type: 'ideal';

interface CreatePaymentMethodP24Data extends PaymentMethodCreateParams {
type: 'p24';
/*
* The customer's billing details.
* `email` is required.
*
* @docs https://stripe.com/docs/api/payment_methods/create#create_payment_method-billing_details
*/
billing_details: PaymentMethodCreateParams.BillingDetails & {
email: string;
};
}
interface CreatePaymentMethodSepaDebitData extends PaymentMethodCreateParams {

@@ -111,2 +172,34 @@ type: 'sepa_debit';

/**
* Data to be sent with a `stripe.confirmBancontactPayment` request.
* Refer to the [Payment Intents API](https://stripe.com/docs/api/payment_intents/confirm) for a full list of parameters.
*/
interface ConfirmBancontactPaymentData 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<CreatePaymentMethodBancontactData, 'type'>;
/**
* The url your customer will be directed to after they complete authentication.
*
* @recommended
*/
return_url?: string;
}
/**
* An options object to control the behavior of `stripe.confirmBancontactPayment`.
*/
interface ConfirmBancontactPaymentOptions {
/*
* Set this to `false` if you want to [manually handle the authorization redirect](https://stripe.com/docs/payments/bancontact#handle-redirect).
* Default is `true`.
*/
handleActions?: boolean;
}
/**
* Data to be sent with a `stripe.confirmCardPayment` request.

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

/**
* Data to be sent with a `stripe.confirmEpsPayment` request.
* Refer to the [Payment Intents API](https://stripe.com/docs/api/payment_intents/confirm) for a full list of parameters.
*/
interface ConfirmEpsPaymentData 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<CreatePaymentMethodEpsData, 'type'>;
/**
* The url your customer will be directed to after they complete authentication.
*
* @recommended
*/
return_url?: string;
}
/**
* An options object to control the behavior of `stripe.confirmEpsPayment`.
*/
interface ConfirmEpsPaymentOptions {
/*
* Set this to `false` if you want to [manually handle the authorization redirect](https://stripe.com/docs/payments/eps#handle-redirect).
* Default is `true`.
*/
handleActions?: boolean;
}
/**
* Data to be sent with a `stripe.confirmSepaDebitPayment` request.

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

/**
* Data to be sent with a `stripe.confirmGiropayPayment` request.
* Refer to the [Payment Intents API](https://stripe.com/docs/api/payment_intents/confirm) for a full list of parameters.
*/
interface ConfirmGiropayPaymentData 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<CreatePaymentMethodGiropayData, 'type'>;
/**
* The url your customer will be directed to after they complete authentication.
*
* @recommended
*/
return_url?: string;
}
/**
* An options object to control the behavior of `stripe.confirmGiropayPayment`.
*/
interface ConfirmGiropayPaymentOptions {
/*
* Set this to `false` if you want to [manually handle the authorization redirect](https://stripe.com/docs/payments/giropay#handle-redirect).
* Default is `true`.
*/
handleActions?: boolean;
}
/**
* Data to be sent with a `stripe.confirmIdealPayment` request.

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

/**
* Data to be sent with a `stripe.confirmP24Payment` request.
* Refer to the [Payment Intents API](https://stripe.com/docs/api/payment_intents/confirm) for a full list of parameters.
*/
interface ConfirmP24PaymentData 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<CreatePaymentMethodP24Data, 'type'>;
/**
* The url your customer will be directed to after they complete authentication.
*
* @recommended
*/
return_url?: string;
}
/**
* An options object to control the behavior of `stripe.confirmP24Payment`.
*/
interface ConfirmP24PaymentOptions {
/*
* Set this to `false` if you want to [manually handle the authorization redirect](https://stripe.com/docs/payments/p24#handle-redirect).
* Default is `true`.
*/
handleActions?: boolean;
}
/**
* Data to be sent with a `stripe.confirmAuBecsDebitPayment` request.

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

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