@stripe/stripe-js
Advanced tools
Comparing version 1.48.0 to 1.49.0
@@ -57,3 +57,3 @@ function _typeof(obj) { | ||
name: 'stripe-js', | ||
version: "1.48.0", | ||
version: "1.49.0", | ||
startTime: startTime | ||
@@ -60,0 +60,0 @@ }); |
@@ -61,3 +61,3 @@ 'use strict'; | ||
name: 'stripe-js', | ||
version: "1.48.0", | ||
version: "1.49.0", | ||
startTime: startTime | ||
@@ -64,0 +64,0 @@ }); |
@@ -41,3 +41,3 @@ var V3_URL = 'https://js.stripe.com/v3'; | ||
name: 'stripe-js', | ||
version: "1.48.0", | ||
version: "1.49.0", | ||
startTime: startTime | ||
@@ -44,0 +44,0 @@ }); |
@@ -45,3 +45,3 @@ 'use strict'; | ||
name: 'stripe-js', | ||
version: "1.48.0", | ||
version: "1.49.0", | ||
startTime: startTime | ||
@@ -48,0 +48,0 @@ }); |
{ | ||
"name": "@stripe/stripe-js", | ||
"version": "1.48.0", | ||
"version": "1.49.0", | ||
"description": "Stripe.js loading utility", | ||
@@ -5,0 +5,0 @@ "main": "dist/stripe.js", |
@@ -25,2 +25,3 @@ import { | ||
| CreatePaymentMethodCardData | ||
| CreatePaymentMethodCashappData | ||
| CreatePaymentMethodCustomerBalanceData | ||
@@ -126,2 +127,6 @@ | CreatePaymentMethodEpsData | ||
interface CreatePaymentMethodCashappData extends PaymentMethodCreateParams { | ||
type: 'cashapp'; | ||
} | ||
export interface CreatePaymentMethodCustomerBalanceData | ||
@@ -649,2 +654,32 @@ extends PaymentMethodCreateParams { | ||
/** | ||
* Data to be sent with a `stripe.confirmCashappPayment` request. | ||
* Refer to the [Payment Intents API](https://stripe.com/docs/api/payment_intents/confirm) for a full list of parameters. | ||
*/ | ||
interface ConfirmCashappPaymentData 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<CreatePaymentMethodCashappData, 'type'>; | ||
/** | ||
* The url your customer will be directed to after they complete authentication. | ||
*/ | ||
return_url?: string; | ||
} | ||
/** | ||
* An options object to control the behavior of `stripe.confirmCashappPayment`. | ||
*/ | ||
interface ConfirmCashappPaymentOptions { | ||
/** | ||
* Set this to `false` if you want to [manually handle the authorization QR code or redirect](https://stripe.com/docs/payments/cash-app-pay/accept-a-payment?platform=web&ui=API#handle-redirect). | ||
* Default is `true`. | ||
*/ | ||
handleActions?: boolean; | ||
} | ||
/** | ||
* Data to be sent with a `stripe.confirmCustomerBalancePayment` request. | ||
@@ -651,0 +686,0 @@ * Refer to the [Payment Intents API](https://stripe.com/docs/api/payment_intents/confirm) for a full list of parameters. |
@@ -8,2 +8,3 @@ import {SetupIntentConfirmParams} from '../api'; | ||
CreatePaymentMethodCardData, | ||
CreatePaymentMethodCashappData, | ||
CreatePaymentMethodIdealData, | ||
@@ -45,3 +46,29 @@ CreatePaymentMethodSepaDebitData, | ||
interface ConfirmCashappSetupData extends SetupIntentConfirmParams { | ||
/* | ||
* 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 `SetupIntent`. | ||
* | ||
* @recommended | ||
*/ | ||
payment_method?: string | Omit<CreatePaymentMethodCashappData, 'type'>; | ||
/** | ||
* The url your customer will be directed to after they complete authentication. | ||
*/ | ||
return_url?: string; | ||
} | ||
/** | ||
* An options object to control the behavior of `stripe.confirmCashappSetup`. | ||
*/ | ||
interface ConfirmCashappSetupOptions { | ||
/* | ||
* Set this to `false` if you want to [manually handle the authorization QR code or redirect](https://stripe.com/docs/payments/cash-app-pay/set-up-payment?platform=web&ui=API#web-create-setup-intent). | ||
* Default is `true`. | ||
*/ | ||
handleActions?: boolean; | ||
} | ||
/** | ||
* Data to be sent with a `stripe.confirmIdealSetup` request. | ||
@@ -48,0 +75,0 @@ * Refer to the [Setup Intents API](https://stripe.com/docs/api/setup_intents/confirm) for a full list of parameters. |
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
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
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
410563
11127
1