@stripe/stripe-js
Advanced tools
Comparing version 1.0.0-beta.5 to 1.0.0-beta.6
{ | ||
"name": "@stripe/stripe-js", | ||
"version": "1.0.0-beta.5", | ||
"version": "1.0.0-beta.6", | ||
"description": "Stripe.js loading utility", | ||
@@ -5,0 +5,0 @@ "main": "dist/stripe.js", |
declare module '@stripe/stripe-js' { | ||
interface RedirectToCheckoutOptions { | ||
interface RedirectToCheckoutServerOptions { | ||
/** | ||
* The ID of the [Checkout Session](https://stripe.com/docs/api/checkout/sessions) that is used in [Checkout's server integration](https://stripe.com/docs/payments/checkout/one-time). | ||
*/ | ||
sessionId: string; | ||
} | ||
interface RedirectToCheckoutClientOptions { | ||
/** | ||
* The URL to which Stripe should send customers when payment is complete. | ||
@@ -15,7 +22,2 @@ * If you’d like access to the Checkout Session for the successful payment, read more about it in our guide on [fulfilling your payments with webhooks](https://stripe.com/docs/payments/checkout/fulfillment#webhooks). | ||
/** | ||
* The ID of the [Checkout Session](https://stripe.com/docs/api/checkout/sessions) that is used in [Checkout's server integration](https://stripe.com/docs/payments/checkout/one-time). | ||
*/ | ||
sessionId?: string; | ||
/** | ||
* An array of objects representing the items that your customer would like to purchase. | ||
@@ -89,2 +91,6 @@ * These items are shown as line items in the Checkout interface and make up the total amount to be collected by Checkout. | ||
} | ||
type RedirectToCheckoutOptions = | ||
| RedirectToCheckoutServerOptions | ||
| RedirectToCheckoutClientOptions; | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
154925
3835
0