@stripe/stripe-js
Advanced tools
Comparing version 1.10.0 to 1.11.0
@@ -57,3 +57,3 @@ function _typeof(obj) { | ||
name: 'stripe-js', | ||
version: "1.10.0", | ||
version: "1.11.0", | ||
startTime: startTime | ||
@@ -60,0 +60,0 @@ }); |
@@ -61,3 +61,3 @@ 'use strict'; | ||
name: 'stripe-js', | ||
version: "1.10.0", | ||
version: "1.11.0", | ||
startTime: startTime | ||
@@ -64,0 +64,0 @@ }); |
@@ -41,3 +41,3 @@ var V3_URL = 'https://js.stripe.com/v3'; | ||
name: 'stripe-js', | ||
version: "1.10.0", | ||
version: "1.11.0", | ||
startTime: startTime | ||
@@ -44,0 +44,0 @@ }); |
@@ -45,3 +45,3 @@ 'use strict'; | ||
name: 'stripe-js', | ||
version: "1.10.0", | ||
version: "1.11.0", | ||
startTime: startTime | ||
@@ -48,0 +48,0 @@ }); |
{ | ||
"name": "@stripe/stripe-js", | ||
"version": "1.10.0", | ||
"version": "1.11.0", | ||
"description": "Stripe.js loading utility", | ||
@@ -5,0 +5,0 @@ "main": "dist/stripe.js", |
@@ -32,2 +32,4 @@ declare module '@stripe/stripe-js' { | ||
eps?: PaymentMethod.Eps; | ||
fpx?: PaymentMethod.Fpx; | ||
@@ -175,2 +177,9 @@ | ||
interface Eps { | ||
/** | ||
* The customer's bank. | ||
*/ | ||
bank: string; | ||
} | ||
interface Fpx { | ||
@@ -177,0 +186,0 @@ /** |
@@ -10,2 +10,3 @@ ///<reference path='./elements/card.d.ts' /> | ||
///<reference path='./elements/au-bank-account.d.ts' /> | ||
///<reference path='./elements/eps-bank.d.ts' /> | ||
@@ -125,2 +126,25 @@ import {StripeAuBankAccountElement} from '@stripe/stripe-js'; | ||
///////////////////////////// | ||
/// epsBank | ||
///////////////////////////// | ||
/** | ||
* Requires beta access: | ||
* Contact [Stripe support](https://support.stripe.com/) for more information. | ||
* | ||
* Creates an `EpsBankElement`. | ||
*/ | ||
create( | ||
elementType: 'epsBank', | ||
options: StripeEpsBankElementOptions | ||
): StripeEpsBankElement; | ||
/** | ||
* Requires beta access: | ||
* Contact [Stripe support](https://support.stripe.com/) for more information. | ||
* | ||
* Looks up a previously created `Element` by its type. | ||
*/ | ||
getElement(elementType: 'epsBank'): StripeEpsBankElement | null; | ||
///////////////////////////// | ||
/// iban | ||
@@ -187,2 +211,3 @@ ///////////////////////////// | ||
| 'cardCvc' | ||
| 'epsBank' | ||
| 'fpxBank' | ||
@@ -199,2 +224,3 @@ | 'iban' | ||
| StripeCardCvcElement | ||
| StripeEpsBankElement | ||
| StripeFpxBankElement | ||
@@ -201,0 +227,0 @@ | StripeIbanElement |
@@ -451,11 +451,10 @@ ///<reference path='./checkout.d.ts' /> | ||
* First, include the `cvc_update_beta_1` flag when creating an instance of the Stripe object. | ||
* Next, render an `CardCvcElement` to collect the data. | ||
* First, render a `CardCvcElement` to collect the data. | ||
* Then pass the `CardCvcElement` to `stripe.createToken` to tokenize the collected data. | ||
* | ||
* @docs https://stripe.com/docs/js/tokens_sources/create_token?type=bank_account | ||
* @docs https://stripe.com/docs/js/tokens_sources/create_token?type=cvc_update | ||
*/ | ||
createToken( | ||
tokenType: 'cvc_update', | ||
element?: StripeCardCvcElement | ||
element: StripeCardCvcElement | ||
): Promise<{token?: Token; error?: StripeError}>; | ||
@@ -462,0 +461,0 @@ |
@@ -55,2 +55,11 @@ declare module '@stripe/stripe-js' { | ||
}; | ||
eps: | ||
| StripeEpsBankElement | ||
| { | ||
/** | ||
* The customer's bank | ||
*/ | ||
bank?: string; | ||
}; | ||
} | ||
@@ -302,2 +311,17 @@ | ||
payment_method?: string | Omit<CreatePaymentMethodCardData, '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 card payment. | ||
*/ | ||
card: { | ||
/** | ||
* Use the provided `CardCvcElement` when confirming the PaymentIntent with an existing PaymentMethod. | ||
*/ | ||
cvc?: StripeCardCvcElement; | ||
}; | ||
}; | ||
} | ||
@@ -304,0 +328,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
244844
44
6105