@stripe/stripe-js
Advanced tools
Comparing version 4.8.0 to 4.9.0
@@ -87,5 +87,2 @@ import {StripeElements} from '../stripe-js'; | ||
/** | ||
* 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 | ||
@@ -92,0 +89,0 @@ */ |
@@ -45,3 +45,3 @@ 'use strict'; | ||
name: 'stripe-js', | ||
version: "4.7.0", | ||
version: "4.8.0", | ||
startTime: startTime | ||
@@ -48,0 +48,0 @@ }); |
@@ -61,3 +61,3 @@ 'use strict'; | ||
name: 'stripe-js', | ||
version: "4.7.0", | ||
version: "4.8.0", | ||
startTime: startTime | ||
@@ -64,0 +64,0 @@ }); |
@@ -15,2 +15,4 @@ import { | ||
import { | ||
StripeCurrencySelectorElement, | ||
FieldsOption, | ||
StripeElementBase, | ||
@@ -155,2 +157,3 @@ StripeExpressCheckoutElement, | ||
adjustableQuantity: StripeCustomCheckoutAdjustableQuantity | null; | ||
images: string[]; | ||
}; | ||
@@ -207,2 +210,8 @@ | ||
export type StripeCustomCheckoutCurrencyOption = { | ||
unitAmount: number; | ||
currency: string; | ||
currencyConversion?: {fxRate: number; sourceCurrency: string}; | ||
}; | ||
/* Custom Checkout session */ | ||
@@ -215,2 +224,3 @@ export interface StripeCustomCheckoutSession { | ||
currency: string; | ||
currencyOptions: Array<StripeCustomCheckoutCurrencyOption> | null; | ||
discountAmounts: Array<StripeCustomCheckoutDiscountAmount> | null; | ||
@@ -243,2 +253,3 @@ email: string | null; | ||
terms?: TermsOption; | ||
fields?: FieldsOption; | ||
}; | ||
@@ -260,2 +271,3 @@ | ||
paymentMethodOrder: StripeExpressCheckoutElementOptions['paymentMethodOrder']; | ||
paymentMethods: StripeExpressCheckoutElementOptions['paymentMethods']; | ||
}; | ||
@@ -402,4 +414,6 @@ | ||
) => Promise<StripeCustomCheckoutResult>; | ||
updatePhoneNumber: (phoneNumber: string) => void; | ||
updateEmail: (email: string) => void; | ||
updatePhoneNumber: ( | ||
phoneNumber: string | ||
) => Promise<StripeCustomCheckoutResult>; | ||
updateEmail: (email: string) => Promise<StripeCustomCheckoutResult>; | ||
updateLineItemQuantity: (args: { | ||
@@ -413,3 +427,2 @@ lineItem: string; | ||
confirm: (args?: { | ||
return_url?: string; | ||
returnUrl?: string; | ||
@@ -433,2 +446,6 @@ redirect?: StripeCustomCheckoutRedirectBehavior; | ||
): StripeCustomCheckoutExpressCheckoutElement | null; | ||
/* Requires beta access: Contact [Stripe support](https://support.stripe.com/) for more information. */ | ||
getElement( | ||
elementType: 'currencySelector' | ||
): StripeCurrencySelectorElement | null; | ||
createElement( | ||
@@ -446,2 +463,4 @@ elementType: 'payment', | ||
): StripeCustomCheckoutExpressCheckoutElement; | ||
/* Requires beta access: Contact [Stripe support](https://support.stripe.com/) for more information. */ | ||
createElement(elementType: 'currencySelector'): StripeCurrencySelectorElement; | ||
} |
import { | ||
StripeAddressElement, | ||
StripeAddressElementOptions, | ||
StripeCurrencySelectorElement, | ||
StripeShippingAddressElement, | ||
@@ -335,5 +336,2 @@ StripeShippingAddressElementOptions, | ||
/** | ||
* Requires beta access: | ||
* Contact [Stripe support](https://support.stripe.com/) for more information. | ||
* | ||
* Creates a `LinkAuthenticationElement`. | ||
@@ -347,5 +345,2 @@ */ | ||
/** | ||
* Requires beta access: | ||
* Contact [Stripe support](https://support.stripe.com/) for more information. | ||
* | ||
* Looks up a previously created `Element` by its type. | ||
@@ -505,2 +500,3 @@ */ | ||
| 'cardCvc' | ||
| 'currencySelector' | ||
| 'epsBank' | ||
@@ -537,2 +533,3 @@ | 'expressCheckout' | ||
| StripeP24BankElement | ||
| StripeCurrencySelectorElement | ||
| StripeExpressCheckoutElement | ||
@@ -539,0 +536,0 @@ | StripePaymentElement |
@@ -11,2 +11,3 @@ export * from './address'; | ||
export * from './card'; | ||
export * from './currency-selector'; | ||
export * from './eps-bank'; | ||
@@ -13,0 +14,0 @@ export * from './express-checkout'; |
@@ -272,2 +272,17 @@ import { | ||
export interface CreatePaymentMethodMultibancoData | ||
extends PaymentMethodCreateParams { | ||
type: 'multibanco'; | ||
/** | ||
* 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; | ||
}; | ||
} | ||
export interface CreatePaymentMethodOxxoData extends PaymentMethodCreateParams { | ||
@@ -374,2 +389,7 @@ type: 'oxxo'; | ||
export interface CreatePaymentMethodTwintData | ||
extends PaymentMethodCreateParams { | ||
type: 'twint'; | ||
} | ||
export interface CreatePaymentMethodAuBecsDebitData | ||
@@ -1082,2 +1102,32 @@ extends PaymentMethodCreateParams { | ||
/** | ||
* Data to be sent with a `stripe.confirmMultibancoPayment` request. | ||
* Refer to the [Payment Intents API](https://stripe.com/docs/api/payment_intents/confirm) for a full list of parameters. | ||
*/ | ||
export interface ConfirmMultibancoPaymentData | ||
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<CreatePaymentMethodMultibancoData, 'type'>; | ||
/** | ||
* The url your customer will be directed to after they complete authentication. | ||
* | ||
* @recommended | ||
*/ | ||
return_url?: string; | ||
} | ||
export interface ConfirmMultibancoPaymentOptions { | ||
/** | ||
* Set this to `false` if you want to [manually handle the authorization redirect](https://stripe.com/docs/payments/sofort/accept-a-payment?platform=web#handle-redirect). | ||
* Default is `true`. | ||
*/ | ||
handleActions?: boolean; | ||
} | ||
/** | ||
* Data to be sent with a `stripe.confirmOxxoPayment` request. | ||
@@ -1285,2 +1335,31 @@ * 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.confirmTwintPayment` request. | ||
* Refer to the [Payment Intents API](https://stripe.com/docs/api/payment_intents/confirm) for a full list of parameters. | ||
*/ | ||
export interface ConfirmTwintPaymentData 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<CreatePaymentMethodTwintData, 'type'>; | ||
/** | ||
* The url your customer will be directed to after they complete authentication. | ||
* | ||
* @recommended | ||
*/ | ||
return_url?: string; | ||
} | ||
export interface ConfirmTwintPaymentOptions { | ||
/** | ||
* Set this to `false` if you want to [manually handle the authorization redirect](https://stripe.com/docs/payments/sofort/accept-a-payment?platform=web#handle-redirect). | ||
* Default is `true`. | ||
*/ | ||
handleActions?: boolean; | ||
} | ||
/** | ||
* Data to be sent with a `stripe.confirmWechatPayPayment` request. | ||
@@ -1467,5 +1546,2 @@ * Refer to the [Payment Intents API](https://stripe.com/docs/api/payment_intents/confirm) for a full list of parameters. | ||
/** | ||
* 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 | ||
@@ -1472,0 +1548,0 @@ */ |
@@ -45,5 +45,2 @@ import {PaymentMethodCreateParams, SetupIntentConfirmParams} from '../api'; | ||
/** | ||
* 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 | ||
@@ -50,0 +47,0 @@ */ |
{ | ||
"name": "@stripe/stripe-js", | ||
"version": "4.8.0", | ||
"version": "4.9.0", | ||
"description": "Stripe.js loading utility", | ||
@@ -5,0 +5,0 @@ "repository": "github:stripe/stripe-js", |
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 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 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
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
920067
141
13085