ngx-stripe
Advanced tools
Comparing version 16.0.0 to 16.1.0
import { Observable } from 'rxjs'; | ||
import { ConfirmAuBecsDebitPaymentData, ConfirmAuBecsDebitSetupData, ConfirmBancontactPaymentData, ConfirmBancontactPaymentOptions, ConfirmCardPaymentData, ConfirmCardPaymentOptions, ConfirmEpsPaymentData, ConfirmEpsPaymentOptions, ConfirmFpxPaymentData, ConfirmFpxPaymentOptions, ConfirmGiropayPaymentData, ConfirmGiropayPaymentOptions, ConfirmIdealPaymentData, ConfirmIdealPaymentOptions, ConfirmP24PaymentData, ConfirmP24PaymentOptions, ConfirmCardSetupData, ConfirmCardSetupOptions, ConfirmSepaDebitPaymentData, ConfirmSepaDebitSetupData, CreatePaymentMethodData, CreateSourceData, CreateTokenIbanData, CreateTokenCardData, CreateTokenPiiData, CreateTokenBankAccountData, PaymentIntent, PaymentRequest, PaymentRequestOptions, RedirectToCheckoutOptions, RetrieveSourceParam, SetupIntent, Stripe, StripeCardElement, StripeCardNumberElement, StripeCardCvcElement, StripeElements, StripeElementsOptions, StripeElement, StripeError, StripeIbanElement, TokenCreateParams, ConfirmAcssDebitPaymentData, ConfirmAcssDebitPaymentOptions, ConfirmAfterpayClearpayPaymentData, ConfirmAfterpayClearpayPaymentOptions, ConfirmAlipayPaymentData, ConfirmGrabPayPaymentData, ConfirmGrabPayPaymentOptions, ConfirmKlarnaPaymentData, ConfirmKlarnaPaymentOptions, ConfirmOxxoPaymentData, ConfirmOxxoPaymentOptions, ConfirmSofortPaymentData, ConfirmWechatPayPaymentData, ConfirmWechatPayPaymentOptions, VerifyMicrodepositsForPaymentData, ConfirmAcssDebitSetupData, ConfirmAcssDebitSetupOptions, ConfirmBacsDebitSetupData, ConfirmBancontactSetupData, ConfirmIdealSetupData, ConfirmSofortSetupData, VerifyMicrodepositsForSetupData, ConfirmAlipayPaymentOptions, VerificationSessionResult, ConfirmPayPalPaymentData, ConfirmPayPalSetupData, ConfirmPaymentData, ConfirmAffirmPaymentData, ConfirmAffirmPaymentOptions, ConfirmPromptPayPaymentData, ConfirmPromptPayPaymentOptions, ConfirmPayNowPaymentData, ConfirmPayNowPaymentOptions, ConfirmCustomerBalancePaymentData, ConfirmCustomerBalancePaymentOptions, ConfirmSofortPaymentOptions, ConfirmSofortSetupOptions, ConfirmKonbiniPaymentData, ConfirmKonbiniPaymentOptions, ConfirmUsBankAccountPaymentData, CollectBankAccountForPaymentOptions, ConfirmUsBankAccountSetupData, CollectBankAccountForSetupOptions, ConfirmPixPaymentData, ConfirmPixPaymentOptions, RadarSessionPayload, ProcessOrderResult, RetrieveOrderResult, TokenResult, PaymentIntentResult, ConfirmBoletoPaymentData, ConfirmBoletoPaymentOptions, PaymentMethodResult, SetupIntentResult, SourceResult, FinancialConnectionsSessionResult, CollectBankAccountTokenResult, EphemeralKeyNonceResult, ProcessOrderParams, CollectFinancialConnectionsAccountsOptions, CollectBankAccountTokenOptions, EphemeralKeyNonceOptions } from '@stripe/stripe-js'; | ||
import { ConfirmAuBecsDebitPaymentData, ConfirmAuBecsDebitSetupData, ConfirmBancontactPaymentData, ConfirmBancontactPaymentOptions, ConfirmCardPaymentData, ConfirmCardPaymentOptions, ConfirmEpsPaymentData, ConfirmEpsPaymentOptions, ConfirmFpxPaymentData, ConfirmFpxPaymentOptions, ConfirmGiropayPaymentData, ConfirmGiropayPaymentOptions, ConfirmIdealPaymentData, ConfirmIdealPaymentOptions, ConfirmP24PaymentData, ConfirmP24PaymentOptions, ConfirmCardSetupData, ConfirmCardSetupOptions, ConfirmSepaDebitPaymentData, ConfirmSepaDebitSetupData, CreatePaymentMethodData, CreateSourceData, CreateTokenIbanData, CreateTokenCardData, CreateTokenPiiData, CreateTokenBankAccountData, PaymentIntent, PaymentRequest, PaymentRequestOptions, RedirectToCheckoutOptions, RetrieveSourceParam, SetupIntent, Stripe, StripeCardElement, StripeCardNumberElement, StripeCardCvcElement, StripeElements, StripeElementsOptions, StripeElement, StripeError, StripeIbanElement, TokenCreateParams, ConfirmAcssDebitPaymentData, ConfirmAcssDebitPaymentOptions, ConfirmAfterpayClearpayPaymentData, ConfirmAfterpayClearpayPaymentOptions, ConfirmAlipayPaymentData, ConfirmGrabPayPaymentData, ConfirmGrabPayPaymentOptions, ConfirmKlarnaPaymentData, ConfirmKlarnaPaymentOptions, ConfirmOxxoPaymentData, ConfirmOxxoPaymentOptions, ConfirmSofortPaymentData, ConfirmWechatPayPaymentData, ConfirmWechatPayPaymentOptions, VerifyMicrodepositsForPaymentData, ConfirmAcssDebitSetupData, ConfirmAcssDebitSetupOptions, ConfirmBacsDebitSetupData, ConfirmBancontactSetupData, ConfirmIdealSetupData, ConfirmSofortSetupData, VerifyMicrodepositsForSetupData, ConfirmAlipayPaymentOptions, VerificationSessionResult, ConfirmPayPalPaymentData, ConfirmPayPalSetupData, ConfirmPaymentData, ConfirmAffirmPaymentData, ConfirmAffirmPaymentOptions, ConfirmPromptPayPaymentData, ConfirmPromptPayPaymentOptions, ConfirmPayNowPaymentData, ConfirmPayNowPaymentOptions, ConfirmCustomerBalancePaymentData, ConfirmCustomerBalancePaymentOptions, ConfirmSofortPaymentOptions, ConfirmSofortSetupOptions, ConfirmKonbiniPaymentData, ConfirmKonbiniPaymentOptions, ConfirmUsBankAccountPaymentData, CollectBankAccountForPaymentOptions, ConfirmUsBankAccountSetupData, CollectBankAccountForSetupOptions, ConfirmPixPaymentData, ConfirmPixPaymentOptions, RadarSessionPayload, ProcessOrderResult, RetrieveOrderResult, TokenResult, PaymentIntentResult, ConfirmBoletoPaymentData, ConfirmBoletoPaymentOptions, PaymentMethodResult, SetupIntentResult, SourceResult, FinancialConnectionsSessionResult, CollectBankAccountTokenResult, EphemeralKeyNonceResult, ProcessOrderParams, CollectFinancialConnectionsAccountsOptions, CollectBankAccountTokenOptions, EphemeralKeyNonceOptions, ConfirmBlikPaymentData, ConfirmBlikPaymentOptions, ConfirmCashappPaymentData, ConfirmCashappPaymentOptions, PaymentIntentOrSetupIntentResult, CreatePaymentMethodFromElements, CreatePaymentMethodFromElement, ConfirmCashappSetupData, ConfirmCashappSetupOptions } from '@stripe/stripe-js'; | ||
export interface StripeServiceInterface { | ||
@@ -15,2 +15,8 @@ getInstance(): Stripe | undefined; | ||
confirmPayment(options: { | ||
elements?: StripeElements; | ||
clientSecret: string; | ||
confirmParams?: Partial<ConfirmPaymentData>; | ||
redirect: 'if_required'; | ||
}): Observable<PaymentIntentResult>; | ||
confirmPayment(options: { | ||
elements: StripeElements; | ||
@@ -22,2 +28,10 @@ confirmParams: ConfirmPaymentData; | ||
}>; | ||
confirmPayment(options: { | ||
elements?: StripeElements; | ||
clientSecret: string; | ||
confirmParams: ConfirmPaymentData; | ||
redirect?: 'always'; | ||
}): Observable<never | { | ||
error: StripeError; | ||
}>; | ||
confirmAcssDebitPayment(clientSecret: string, data?: ConfirmAcssDebitPaymentData, options?: ConfirmAcssDebitPaymentOptions): Observable<PaymentIntentResult>; | ||
@@ -28,4 +42,6 @@ confirmUsBankAccountPayment(clientSecret: string, data?: ConfirmUsBankAccountPaymentData): Observable<PaymentIntentResult>; | ||
confirmBancontactPayment(clientSecret: string, data?: ConfirmBancontactPaymentData, options?: ConfirmBancontactPaymentOptions): Observable<PaymentIntentResult>; | ||
confirmBlikPayment(clientSecret: string, data: ConfirmBlikPaymentData, options?: ConfirmBlikPaymentOptions): Observable<PaymentIntentResult>; | ||
confirmBoletoPayment(clientSecret: string, data?: ConfirmBoletoPaymentData, options?: ConfirmBoletoPaymentOptions): Observable<PaymentIntentResult>; | ||
confirmCardPayment(clientSecret: string, data?: ConfirmCardPaymentData, options?: ConfirmCardPaymentOptions): Observable<PaymentIntentResult>; | ||
confirmCashappPayment(clientSecret: string, data?: ConfirmCashappPaymentData, options?: ConfirmCashappPaymentOptions): Observable<PaymentIntentResult>; | ||
confirmCustomerBalancePayment(clientSecret: string, data?: ConfirmCustomerBalancePaymentData, options?: ConfirmCustomerBalancePaymentOptions): Observable<PaymentIntentResult>; | ||
@@ -49,2 +65,5 @@ confirmEpsPayment(clientSecret: string, data?: ConfirmEpsPaymentData, options?: ConfirmEpsPaymentOptions): Observable<PaymentIntentResult>; | ||
handleCardAction(clientSecret: string): Observable<PaymentIntentResult>; | ||
handleNextAction(options: { | ||
clientSecret: string; | ||
}): Observable<PaymentIntentOrSetupIntentResult>; | ||
verifyMicrodepositsForPayment(clientSecret: string, data?: VerifyMicrodepositsForPaymentData): Observable<PaymentIntentResult>; | ||
@@ -54,2 +73,4 @@ createRadarSession(): Observable<RadarSessionPayload>; | ||
createPaymentMethod(paymentMethodData: CreatePaymentMethodData): Observable<PaymentMethodResult>; | ||
createPaymentMethod(options: CreatePaymentMethodFromElements): Observable<PaymentMethodResult>; | ||
createPaymentMethod(options: CreatePaymentMethodFromElement): Observable<PaymentMethodResult>; | ||
retrievePaymentIntent(clientSecret: string): Observable<PaymentIntentResult>; | ||
@@ -62,2 +83,8 @@ confirmSetup(options: { | ||
confirmSetup(options: { | ||
elements?: StripeElements; | ||
clientSecret: string; | ||
confirmParams?: Partial<ConfirmPaymentData>; | ||
redirect: 'if_required'; | ||
}): Observable<SetupIntentResult>; | ||
confirmSetup(options: { | ||
elements: StripeElements; | ||
@@ -69,2 +96,10 @@ confirmParams: ConfirmPaymentData; | ||
}>; | ||
confirmSetup(options: { | ||
elements?: StripeElements; | ||
clientSecret: string; | ||
confirmParams: ConfirmPaymentData; | ||
redirect?: 'always'; | ||
}): Observable<never | { | ||
error: StripeError; | ||
}>; | ||
confirmAcssDebitSetup(clientSecret: string, data?: ConfirmAcssDebitSetupData, options?: ConfirmAcssDebitSetupOptions): Observable<SetupIntentResult>; | ||
@@ -76,2 +111,3 @@ confirmUsBankAccountSetup(clientSecret: string, data?: ConfirmUsBankAccountSetupData): Observable<SetupIntentResult>; | ||
confirmCardSetup(clientSecret: string, data?: ConfirmCardSetupData, options?: ConfirmCardSetupOptions): Observable<SetupIntentResult>; | ||
confirmCashappSetup(clientSecret: string, data?: ConfirmCashappSetupData, options?: ConfirmCashappSetupOptions): Observable<SetupIntentResult>; | ||
confirmIdealSetup(clientSecret: string, data?: ConfirmIdealSetupData): Observable<SetupIntentResult>; | ||
@@ -78,0 +114,0 @@ confirmPayPalSetup(clientSecret: string, data?: ConfirmPayPalSetupData): Observable<SetupIntentResult>; |
@@ -24,6 +24,7 @@ import { ModuleWithProviders } from '@angular/core'; | ||
import * as i20 from "./components/payment-element.component"; | ||
import * as i21 from "./components/payment-request-button.component"; | ||
import * as i22 from "./directives/card-group.directive"; | ||
import * as i23 from "./directives/elements.directive"; | ||
import * as i24 from "./directives/stripe-element-loading-template.directive"; | ||
import * as i21 from "./components/payment-method-messaging.component"; | ||
import * as i22 from "./components/payment-request-button.component"; | ||
import * as i23 from "./directives/card-group.directive"; | ||
import * as i24 from "./directives/elements.directive"; | ||
import * as i25 from "./directives/stripe-element-loading-template.directive"; | ||
export declare class NgxStripeModule { | ||
@@ -36,4 +37,4 @@ static forRoot(publishableKey?: string, options?: StripeConstructorOptions): ModuleWithProviders<NgxStripeModule>; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<NgxStripeModule, never>; | ||
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxStripeModule, never, [typeof i1.CommonModule, typeof i2.StripeAddressComponent, typeof i3.StripeAffirmMessageComponent, typeof i4.StripeAfterpayClearpayMessageComponent, typeof i5.StripeCardComponent, typeof i6.StripeCardNumberComponent, typeof i7.StripeCardExpiryComponent, typeof i8.StripeCardCvcComponent, typeof i9.StripeEpsBankComponent, typeof i10.StripeFpxBankComponent, typeof i11.StripeIbanComponent, typeof i12.StripeIdealBankComponent, typeof i13.StripeIssuingCardCvcDisplayComponent, typeof i14.StripeIssuingCardExpiryDisplayComponent, typeof i15.StripeIssuingCardNumberDisplayComponent, typeof i16.StripeIssuingCardPinDisplayComponent, typeof i17.StripeLinkAuthenticationComponent, typeof i18.StripeP24BankComponent, typeof i19.StripeAuBankAccountComponent, typeof i20.StripePaymentElementComponent, typeof i21.StripePaymentRequestButtonComponent, typeof i22.StripeCardGroupDirective, typeof i23.StripeElementsDirective, typeof i24.NgxStripeElementLoadingTemplateDirective], [typeof i2.StripeAddressComponent, typeof i3.StripeAffirmMessageComponent, typeof i4.StripeAfterpayClearpayMessageComponent, typeof i5.StripeCardComponent, typeof i6.StripeCardNumberComponent, typeof i7.StripeCardExpiryComponent, typeof i8.StripeCardCvcComponent, typeof i9.StripeEpsBankComponent, typeof i10.StripeFpxBankComponent, typeof i11.StripeIbanComponent, typeof i12.StripeIdealBankComponent, typeof i13.StripeIssuingCardCvcDisplayComponent, typeof i14.StripeIssuingCardExpiryDisplayComponent, typeof i15.StripeIssuingCardNumberDisplayComponent, typeof i16.StripeIssuingCardPinDisplayComponent, typeof i17.StripeLinkAuthenticationComponent, typeof i18.StripeP24BankComponent, typeof i19.StripeAuBankAccountComponent, typeof i20.StripePaymentElementComponent, typeof i21.StripePaymentRequestButtonComponent, typeof i22.StripeCardGroupDirective, typeof i23.StripeElementsDirective, typeof i24.NgxStripeElementLoadingTemplateDirective]>; | ||
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxStripeModule, never, [typeof i1.CommonModule, typeof i2.StripeAddressComponent, typeof i3.StripeAffirmMessageComponent, typeof i4.StripeAfterpayClearpayMessageComponent, typeof i5.StripeCardComponent, typeof i6.StripeCardNumberComponent, typeof i7.StripeCardExpiryComponent, typeof i8.StripeCardCvcComponent, typeof i9.StripeEpsBankComponent, typeof i10.StripeFpxBankComponent, typeof i11.StripeIbanComponent, typeof i12.StripeIdealBankComponent, typeof i13.StripeIssuingCardCvcDisplayComponent, typeof i14.StripeIssuingCardExpiryDisplayComponent, typeof i15.StripeIssuingCardNumberDisplayComponent, typeof i16.StripeIssuingCardPinDisplayComponent, typeof i17.StripeLinkAuthenticationComponent, typeof i18.StripeP24BankComponent, typeof i19.StripeAuBankAccountComponent, typeof i20.StripePaymentElementComponent, typeof i21.StripePaymentMethodMessagingComponent, typeof i22.StripePaymentRequestButtonComponent, typeof i23.StripeCardGroupDirective, typeof i24.StripeElementsDirective, typeof i25.NgxStripeElementLoadingTemplateDirective], [typeof i2.StripeAddressComponent, typeof i3.StripeAffirmMessageComponent, typeof i4.StripeAfterpayClearpayMessageComponent, typeof i5.StripeCardComponent, typeof i6.StripeCardNumberComponent, typeof i7.StripeCardExpiryComponent, typeof i8.StripeCardCvcComponent, typeof i9.StripeEpsBankComponent, typeof i10.StripeFpxBankComponent, typeof i11.StripeIbanComponent, typeof i12.StripeIdealBankComponent, typeof i13.StripeIssuingCardCvcDisplayComponent, typeof i14.StripeIssuingCardExpiryDisplayComponent, typeof i15.StripeIssuingCardNumberDisplayComponent, typeof i16.StripeIssuingCardPinDisplayComponent, typeof i17.StripeLinkAuthenticationComponent, typeof i18.StripeP24BankComponent, typeof i19.StripeAuBankAccountComponent, typeof i20.StripePaymentElementComponent, typeof i21.StripePaymentMethodMessagingComponent, typeof i22.StripePaymentRequestButtonComponent, typeof i23.StripeCardGroupDirective, typeof i24.StripeElementsDirective, typeof i25.NgxStripeElementLoadingTemplateDirective]>; | ||
static ɵinj: i0.ɵɵInjectorDeclaration<NgxStripeModule>; | ||
} |
import { Observable } from 'rxjs'; | ||
import { PaymentRequest, PaymentRequestOptions, StripeCardElementOptions, StripeAuBankAccountElementOptions, StripeCardNumberElementOptions, StripeCardExpiryElementOptions, StripeElements, StripeFpxBankElementOptions, StripeIbanElementOptions, StripeIdealBankElementOptions, StripePaymentRequestButtonElementOptions, StripePaymentElementOptions, StripeAffirmMessageElementOptions, StripeAfterpayClearpayMessageElementOptions, StripeEpsBankElementOptions, StripeP24BankElementOptions, StripeAddressElementOptions, StripeLinkAuthenticationElementOptions, StripeIssuingCardNumberDisplayElementOptions, StripeIssuingCardCvcDisplayElementOptions, StripeIssuingCardExpiryDisplayElementOptions, StripeIssuingCardPinDisplayElementOptions, StripeElementsOptionsClientSecret, StripeElementsOptionsMode, StripeElementsOptions } from '@stripe/stripe-js'; | ||
import { PaymentRequest, PaymentRequestOptions, StripeCardElementOptions, StripeAuBankAccountElementOptions, StripeCardNumberElementOptions, StripeCardExpiryElementOptions, StripeElements, StripeFpxBankElementOptions, StripeIbanElementOptions, StripeIdealBankElementOptions, StripePaymentRequestButtonElementOptions, StripePaymentElementOptions, StripeAffirmMessageElementOptions, StripeAfterpayClearpayMessageElementOptions, StripeEpsBankElementOptions, StripeP24BankElementOptions, StripeAddressElementOptions, StripeLinkAuthenticationElementOptions, StripeIssuingCardNumberDisplayElementOptions, StripeIssuingCardCvcDisplayElementOptions, StripeIssuingCardExpiryDisplayElementOptions, StripeIssuingCardPinDisplayElementOptions, StripeElementsOptionsClientSecret, StripeElementsOptionsMode, StripeElementsOptions, StripePaymentMethodMessagingElementOptions } from '@stripe/stripe-js'; | ||
import { StripeService } from './stripe.service'; | ||
@@ -29,2 +29,3 @@ import * as i0 from "@angular/core"; | ||
mergeOptions(options: StripeIssuingCardPinDisplayElementOptions, containerClass: string): StripeIssuingCardPinDisplayElementOptions; | ||
mergeOptions(options: StripePaymentMethodMessagingElementOptions, containerClass: string): StripePaymentMethodMessagingElementOptions; | ||
mergeOptions(options: StripePaymentRequestButtonElementOptions, containerClass: string): StripePaymentRequestButtonElementOptions; | ||
@@ -31,0 +32,0 @@ mergeOptions(options: StripePaymentElementOptions, containerClass: string): StripePaymentElementOptions; |
import { Observable } from 'rxjs'; | ||
import { ConfirmAcssDebitPaymentData, ConfirmAcssDebitPaymentOptions, ConfirmAfterpayClearpayPaymentData, ConfirmAfterpayClearpayPaymentOptions, ConfirmAlipayPaymentData, ConfirmAlipayPaymentOptions, ConfirmAuBecsDebitPaymentData, ConfirmAuBecsDebitSetupData, ConfirmBancontactPaymentData, ConfirmBancontactPaymentOptions, ConfirmBoletoPaymentData, ConfirmBoletoPaymentOptions, ConfirmCardPaymentData, ConfirmCardPaymentOptions, ConfirmEpsPaymentData, ConfirmEpsPaymentOptions, ConfirmFpxPaymentData, ConfirmFpxPaymentOptions, ConfirmGiropayPaymentData, ConfirmGiropayPaymentOptions, ConfirmGrabPayPaymentData, ConfirmGrabPayPaymentOptions, ConfirmIdealPaymentData, ConfirmIdealPaymentOptions, ConfirmKlarnaPaymentData, ConfirmKlarnaPaymentOptions, ConfirmOxxoPaymentData, ConfirmOxxoPaymentOptions, ConfirmP24PaymentData, ConfirmP24PaymentOptions, ConfirmCardSetupData, ConfirmCardSetupOptions, ConfirmSepaDebitPaymentData, ConfirmSofortPaymentData, ConfirmWechatPayPaymentData, ConfirmWechatPayPaymentOptions, ConfirmSepaDebitSetupData, CreatePaymentMethodData, VerifyMicrodepositsForPaymentData, ConfirmAcssDebitSetupData, ConfirmAcssDebitSetupOptions, CreateSourceData, CreateTokenIbanData, CreateTokenCardData, CreateTokenPiiData, CreateTokenBankAccountData, PaymentRequest, PaymentRequestOptions, RedirectToCheckoutOptions, RetrieveSourceParam, Stripe, StripeCardElement, StripeCardNumberElement, StripeCardCvcElement, StripeConstructorOptions, StripeElements, StripeElement, StripeError, StripeIbanElement, TokenCreateParams, ConfirmBacsDebitSetupData, ConfirmBancontactSetupData, ConfirmIdealSetupData, ConfirmSofortSetupData, VerifyMicrodepositsForSetupData, VerificationSessionResult, ConfirmPayPalPaymentData, ConfirmPayPalSetupData, ConfirmPaymentData, ConfirmCustomerBalancePaymentData, ConfirmCustomerBalancePaymentOptions, ConfirmPayNowPaymentData, ConfirmPayNowPaymentOptions, ConfirmPromptPayPaymentData, ConfirmPromptPayPaymentOptions, ConfirmAffirmPaymentData, ConfirmAffirmPaymentOptions, ConfirmSofortPaymentOptions, ConfirmSofortSetupOptions, ConfirmKonbiniPaymentData, ConfirmKonbiniPaymentOptions, ConfirmUsBankAccountPaymentData, CollectBankAccountForPaymentOptions, ConfirmUsBankAccountSetupData, CollectBankAccountForSetupOptions, PaymentIntentResult, PaymentMethodResult, SetupIntentResult, TokenResult, SourceResult, ConfirmPixPaymentData, ConfirmPixPaymentOptions, RadarSessionPayload, ProcessOrderResult, RetrieveOrderResult, FinancialConnectionsSessionResult, CollectBankAccountTokenResult, EphemeralKeyNonceResult, ProcessOrderParams, CollectFinancialConnectionsAccountsOptions, CollectBankAccountTokenOptions, EphemeralKeyNonceOptions, StripeElementsOptionsClientSecret, StripeElementsOptionsMode, StripeElementsOptions } from '@stripe/stripe-js'; | ||
import { ConfirmAcssDebitPaymentData, ConfirmAcssDebitPaymentOptions, ConfirmAfterpayClearpayPaymentData, ConfirmAfterpayClearpayPaymentOptions, ConfirmAlipayPaymentData, ConfirmAlipayPaymentOptions, ConfirmAuBecsDebitPaymentData, ConfirmAuBecsDebitSetupData, ConfirmBancontactPaymentData, ConfirmBancontactPaymentOptions, ConfirmBoletoPaymentData, ConfirmBoletoPaymentOptions, ConfirmCardPaymentData, ConfirmCardPaymentOptions, ConfirmEpsPaymentData, ConfirmEpsPaymentOptions, ConfirmFpxPaymentData, ConfirmFpxPaymentOptions, ConfirmGiropayPaymentData, ConfirmGiropayPaymentOptions, ConfirmGrabPayPaymentData, ConfirmGrabPayPaymentOptions, ConfirmIdealPaymentData, ConfirmIdealPaymentOptions, ConfirmKlarnaPaymentData, ConfirmKlarnaPaymentOptions, ConfirmOxxoPaymentData, ConfirmOxxoPaymentOptions, ConfirmP24PaymentData, ConfirmP24PaymentOptions, ConfirmCardSetupData, ConfirmCardSetupOptions, ConfirmSepaDebitPaymentData, ConfirmSofortPaymentData, ConfirmWechatPayPaymentData, ConfirmWechatPayPaymentOptions, ConfirmSepaDebitSetupData, CreatePaymentMethodData, VerifyMicrodepositsForPaymentData, ConfirmAcssDebitSetupData, ConfirmAcssDebitSetupOptions, CreateSourceData, CreateTokenIbanData, CreateTokenCardData, CreateTokenPiiData, CreateTokenBankAccountData, PaymentRequest, PaymentRequestOptions, RedirectToCheckoutOptions, RetrieveSourceParam, Stripe, StripeCardElement, StripeCardNumberElement, StripeCardCvcElement, StripeConstructorOptions, StripeElements, StripeElement, StripeError, StripeIbanElement, TokenCreateParams, ConfirmBacsDebitSetupData, ConfirmBancontactSetupData, ConfirmIdealSetupData, ConfirmSofortSetupData, VerifyMicrodepositsForSetupData, VerificationSessionResult, ConfirmPayPalPaymentData, ConfirmPayPalSetupData, ConfirmPaymentData, ConfirmCustomerBalancePaymentData, ConfirmCustomerBalancePaymentOptions, ConfirmPayNowPaymentData, ConfirmPayNowPaymentOptions, ConfirmPromptPayPaymentData, ConfirmPromptPayPaymentOptions, ConfirmAffirmPaymentData, ConfirmAffirmPaymentOptions, ConfirmSofortPaymentOptions, ConfirmSofortSetupOptions, ConfirmKonbiniPaymentData, ConfirmKonbiniPaymentOptions, ConfirmUsBankAccountPaymentData, CollectBankAccountForPaymentOptions, ConfirmUsBankAccountSetupData, CollectBankAccountForSetupOptions, PaymentIntentResult, PaymentMethodResult, SetupIntentResult, TokenResult, SourceResult, ConfirmPixPaymentData, ConfirmPixPaymentOptions, RadarSessionPayload, ProcessOrderResult, RetrieveOrderResult, FinancialConnectionsSessionResult, CollectBankAccountTokenResult, EphemeralKeyNonceResult, ProcessOrderParams, CollectFinancialConnectionsAccountsOptions, CollectBankAccountTokenOptions, EphemeralKeyNonceOptions, StripeElementsOptionsClientSecret, StripeElementsOptionsMode, StripeElementsOptions, ConfirmBlikPaymentData, ConfirmBlikPaymentOptions, ConfirmCashappPaymentData, ConfirmCashappPaymentOptions, PaymentIntentOrSetupIntentResult, CreatePaymentMethodFromElements, CreatePaymentMethodFromElement, ConfirmCashappSetupData, ConfirmCashappSetupOptions } from '@stripe/stripe-js'; | ||
import { StripeServiceInterface } from '../interfaces/stripe-instance.interface'; | ||
@@ -28,2 +28,8 @@ import { WindowRef } from './window-ref.service'; | ||
confirmPayment(options: { | ||
elements?: StripeElements; | ||
clientSecret: string; | ||
confirmParams?: Partial<ConfirmPaymentData>; | ||
redirect: 'if_required'; | ||
}): Observable<PaymentIntentResult>; | ||
confirmPayment(options: { | ||
elements: StripeElements; | ||
@@ -35,2 +41,10 @@ confirmParams: ConfirmPaymentData; | ||
}>; | ||
confirmPayment(options: { | ||
elements?: StripeElements; | ||
clientSecret: string; | ||
confirmParams: ConfirmPaymentData; | ||
redirect?: 'always'; | ||
}): Observable<never | { | ||
error: StripeError; | ||
}>; | ||
confirmAcssDebitPayment(clientSecret: string, data?: ConfirmAcssDebitPaymentData, options?: ConfirmAcssDebitPaymentOptions): Observable<PaymentIntentResult>; | ||
@@ -41,4 +55,6 @@ confirmUsBankAccountPayment(clientSecret: string, data?: ConfirmUsBankAccountPaymentData): Observable<PaymentIntentResult>; | ||
confirmBancontactPayment(clientSecret: string, data?: ConfirmBancontactPaymentData, options?: ConfirmBancontactPaymentOptions): Observable<PaymentIntentResult>; | ||
confirmBlikPayment(clientSecret: string, data?: ConfirmBlikPaymentData, options?: ConfirmBlikPaymentOptions): Observable<PaymentIntentResult>; | ||
confirmBoletoPayment(clientSecret: string, data?: ConfirmBoletoPaymentData, options?: ConfirmBoletoPaymentOptions): Observable<PaymentIntentResult>; | ||
confirmCardPayment(clientSecret: string, data?: ConfirmCardPaymentData, options?: ConfirmCardPaymentOptions): Observable<PaymentIntentResult>; | ||
confirmCashappPayment(clientSecret: string, data?: ConfirmCashappPaymentData, options?: ConfirmCashappPaymentOptions): Observable<PaymentIntentResult>; | ||
confirmCustomerBalancePayment(clientSecret: string, data: ConfirmCustomerBalancePaymentData, options: ConfirmCustomerBalancePaymentOptions): Observable<PaymentIntentResult>; | ||
@@ -62,2 +78,5 @@ confirmEpsPayment(clientSecret: string, data?: ConfirmEpsPaymentData, options?: ConfirmEpsPaymentOptions): Observable<PaymentIntentResult>; | ||
handleCardAction(clientSecret: string): Observable<PaymentIntentResult>; | ||
handleNextAction(options: { | ||
clientSecret: string; | ||
}): Observable<PaymentIntentOrSetupIntentResult>; | ||
verifyMicrodepositsForPayment(clientSecret: string, data?: VerifyMicrodepositsForPaymentData): Observable<PaymentIntentResult>; | ||
@@ -67,2 +86,4 @@ createRadarSession(): Observable<RadarSessionPayload>; | ||
createPaymentMethod(paymentMethodData: CreatePaymentMethodData): Observable<PaymentMethodResult>; | ||
createPaymentMethod(options: CreatePaymentMethodFromElements): Observable<PaymentMethodResult>; | ||
createPaymentMethod(options: CreatePaymentMethodFromElement): Observable<PaymentMethodResult>; | ||
retrievePaymentIntent(clientSecret: string): Observable<PaymentIntentResult>; | ||
@@ -75,2 +96,8 @@ confirmSetup(options: { | ||
confirmSetup(options: { | ||
elements?: StripeElements; | ||
clientSecret: string; | ||
confirmParams?: Partial<ConfirmPaymentData>; | ||
redirect: 'if_required'; | ||
}): Observable<SetupIntentResult>; | ||
confirmSetup(options: { | ||
elements: StripeElements; | ||
@@ -82,2 +109,10 @@ confirmParams: ConfirmPaymentData; | ||
}>; | ||
confirmSetup(options: { | ||
elements?: StripeElements; | ||
clientSecret: string; | ||
confirmParams: ConfirmPaymentData; | ||
redirect?: 'always'; | ||
}): Observable<never | { | ||
error: StripeError; | ||
}>; | ||
confirmAcssDebitSetup(clientSecret: string, data?: ConfirmAcssDebitSetupData, options?: ConfirmAcssDebitSetupOptions): Observable<SetupIntentResult>; | ||
@@ -89,2 +124,3 @@ confirmUsBankAccountSetup(clientSecret: string, data?: ConfirmUsBankAccountSetupData): Observable<SetupIntentResult>; | ||
confirmCardSetup(clientSecret: string, data?: ConfirmCardSetupData, options?: ConfirmCardSetupOptions): Observable<SetupIntentResult>; | ||
confirmCashappSetup(clientSecret: string, data?: ConfirmCashappSetupData, options?: ConfirmCashappSetupOptions): Observable<SetupIntentResult>; | ||
confirmIdealSetup(clientSecret: string, data?: ConfirmIdealSetupData): Observable<SetupIntentResult>; | ||
@@ -91,0 +127,0 @@ confirmPayPalSetup(clientSecret: string, data?: ConfirmPayPalSetupData): Observable<SetupIntentResult>; |
import { Observable } from 'rxjs'; | ||
import { ConfirmAcssDebitPaymentData, ConfirmAcssDebitPaymentOptions, ConfirmAfterpayClearpayPaymentData, ConfirmAfterpayClearpayPaymentOptions, ConfirmAlipayPaymentData, ConfirmAlipayPaymentOptions, ConfirmAuBecsDebitPaymentData, ConfirmAuBecsDebitSetupData, ConfirmBancontactPaymentData, ConfirmBancontactPaymentOptions, ConfirmBoletoPaymentData, ConfirmBoletoPaymentOptions, ConfirmCardPaymentData, ConfirmCardPaymentOptions, ConfirmEpsPaymentData, ConfirmEpsPaymentOptions, ConfirmFpxPaymentData, ConfirmFpxPaymentOptions, ConfirmGiropayPaymentData, ConfirmGiropayPaymentOptions, ConfirmGrabPayPaymentData, ConfirmGrabPayPaymentOptions, ConfirmIdealPaymentData, ConfirmIdealPaymentOptions, ConfirmKlarnaPaymentData, ConfirmKlarnaPaymentOptions, ConfirmOxxoPaymentData, ConfirmOxxoPaymentOptions, ConfirmP24PaymentData, ConfirmP24PaymentOptions, ConfirmCardSetupData, ConfirmCardSetupOptions, ConfirmSepaDebitPaymentData, ConfirmSofortPaymentData, ConfirmWechatPayPaymentData, ConfirmWechatPayPaymentOptions, ConfirmSepaDebitSetupData, CreatePaymentMethodData, VerifyMicrodepositsForPaymentData, ConfirmAcssDebitSetupData, ConfirmAcssDebitSetupOptions, CreateSourceData, CreateTokenIbanData, CreateTokenCardData, CreateTokenPiiData, CreateTokenBankAccountData, PaymentRequest, PaymentRequestOptions, RedirectToCheckoutOptions, RetrieveSourceParam, Stripe, StripeCardElement, StripeCardNumberElement, StripeCardCvcElement, StripeConstructorOptions, StripeElements, StripeElementsOptions, StripeElement, StripeError, StripeIbanElement, TokenCreateParams, ConfirmBacsDebitSetupData, ConfirmBancontactSetupData, ConfirmIdealSetupData, ConfirmSofortSetupData, VerifyMicrodepositsForSetupData, VerificationSessionResult, ConfirmPayPalPaymentData, ConfirmPayPalSetupData, ConfirmPaymentData, ConfirmCustomerBalancePaymentData, ConfirmCustomerBalancePaymentOptions, ConfirmPayNowPaymentData, ConfirmPayNowPaymentOptions, ConfirmPromptPayPaymentData, ConfirmPromptPayPaymentOptions, ConfirmAffirmPaymentData, ConfirmAffirmPaymentOptions, ConfirmSofortPaymentOptions, ConfirmSofortSetupOptions, ConfirmKonbiniPaymentData, ConfirmKonbiniPaymentOptions, ConfirmUsBankAccountPaymentData, CollectBankAccountForPaymentOptions, ConfirmUsBankAccountSetupData, CollectBankAccountForSetupOptions, ConfirmPixPaymentData, ConfirmPixPaymentOptions, PaymentIntentResult, PaymentMethodResult, SetupIntentResult, ProcessOrderResult, RetrieveOrderResult, TokenResult, SourceResult, FinancialConnectionsSessionResult, CollectBankAccountTokenResult, EphemeralKeyNonceResult, RadarSessionPayload, ProcessOrderParams, CollectFinancialConnectionsAccountsOptions, CollectBankAccountTokenOptions, EphemeralKeyNonceOptions, StripeElementsOptionsClientSecret, StripeElementsOptionsMode } from '@stripe/stripe-js'; | ||
import { ConfirmAcssDebitPaymentData, ConfirmAcssDebitPaymentOptions, ConfirmAfterpayClearpayPaymentData, ConfirmAfterpayClearpayPaymentOptions, ConfirmAlipayPaymentData, ConfirmAlipayPaymentOptions, ConfirmAuBecsDebitPaymentData, ConfirmAuBecsDebitSetupData, ConfirmBancontactPaymentData, ConfirmBancontactPaymentOptions, ConfirmBoletoPaymentData, ConfirmBoletoPaymentOptions, ConfirmCardPaymentData, ConfirmCardPaymentOptions, ConfirmEpsPaymentData, ConfirmEpsPaymentOptions, ConfirmFpxPaymentData, ConfirmFpxPaymentOptions, ConfirmGiropayPaymentData, ConfirmGiropayPaymentOptions, ConfirmGrabPayPaymentData, ConfirmGrabPayPaymentOptions, ConfirmIdealPaymentData, ConfirmIdealPaymentOptions, ConfirmKlarnaPaymentData, ConfirmKlarnaPaymentOptions, ConfirmOxxoPaymentData, ConfirmOxxoPaymentOptions, ConfirmP24PaymentData, ConfirmP24PaymentOptions, ConfirmCardSetupData, ConfirmCardSetupOptions, ConfirmSepaDebitPaymentData, ConfirmSofortPaymentData, ConfirmWechatPayPaymentData, ConfirmWechatPayPaymentOptions, ConfirmSepaDebitSetupData, CreatePaymentMethodData, VerifyMicrodepositsForPaymentData, ConfirmAcssDebitSetupData, ConfirmAcssDebitSetupOptions, CreateSourceData, CreateTokenIbanData, CreateTokenCardData, CreateTokenPiiData, CreateTokenBankAccountData, PaymentRequest, PaymentRequestOptions, RedirectToCheckoutOptions, RetrieveSourceParam, Stripe, StripeCardElement, StripeCardNumberElement, StripeCardCvcElement, StripeConstructorOptions, StripeElements, StripeElementsOptions, StripeElement, StripeError, StripeIbanElement, TokenCreateParams, ConfirmBacsDebitSetupData, ConfirmBancontactSetupData, ConfirmIdealSetupData, ConfirmSofortSetupData, VerifyMicrodepositsForSetupData, VerificationSessionResult, ConfirmPayPalPaymentData, ConfirmPayPalSetupData, ConfirmPaymentData, ConfirmCustomerBalancePaymentData, ConfirmCustomerBalancePaymentOptions, ConfirmPayNowPaymentData, ConfirmPayNowPaymentOptions, ConfirmPromptPayPaymentData, ConfirmPromptPayPaymentOptions, ConfirmAffirmPaymentData, ConfirmAffirmPaymentOptions, ConfirmSofortPaymentOptions, ConfirmSofortSetupOptions, ConfirmKonbiniPaymentData, ConfirmKonbiniPaymentOptions, ConfirmUsBankAccountPaymentData, CollectBankAccountForPaymentOptions, ConfirmUsBankAccountSetupData, CollectBankAccountForSetupOptions, ConfirmPixPaymentData, ConfirmPixPaymentOptions, PaymentIntentResult, PaymentMethodResult, SetupIntentResult, ProcessOrderResult, RetrieveOrderResult, TokenResult, SourceResult, FinancialConnectionsSessionResult, CollectBankAccountTokenResult, EphemeralKeyNonceResult, RadarSessionPayload, ProcessOrderParams, CollectFinancialConnectionsAccountsOptions, CollectBankAccountTokenOptions, EphemeralKeyNonceOptions, StripeElementsOptionsClientSecret, StripeElementsOptionsMode, ConfirmBlikPaymentData, ConfirmBlikPaymentOptions, ConfirmCashappPaymentData, ConfirmCashappPaymentOptions, PaymentIntentOrSetupIntentResult, CreatePaymentMethodFromElements, CreatePaymentMethodFromElement, ConfirmCashappSetupData, ConfirmCashappSetupOptions } from '@stripe/stripe-js'; | ||
import { StripeServiceInterface } from '../interfaces/stripe-instance.interface'; | ||
@@ -32,2 +32,8 @@ import { WindowRef } from './window-ref.service'; | ||
confirmPayment(options: { | ||
elements?: StripeElements; | ||
clientSecret: string; | ||
confirmParams?: Partial<ConfirmPaymentData>; | ||
redirect: 'if_required'; | ||
}): Observable<PaymentIntentResult>; | ||
confirmPayment(options: { | ||
elements: StripeElements; | ||
@@ -39,2 +45,10 @@ confirmParams: ConfirmPaymentData; | ||
}>; | ||
confirmPayment(options: { | ||
elements?: StripeElements; | ||
clientSecret: string; | ||
confirmParams: ConfirmPaymentData; | ||
redirect?: 'always'; | ||
}): Observable<never | { | ||
error: StripeError; | ||
}>; | ||
confirmAcssDebitPayment(clientSecret: string, data?: ConfirmAcssDebitPaymentData, options?: ConfirmAcssDebitPaymentOptions): Observable<PaymentIntentResult>; | ||
@@ -45,4 +59,6 @@ confirmUsBankAccountPayment(clientSecret: string, data?: ConfirmUsBankAccountPaymentData): Observable<PaymentIntentResult>; | ||
confirmBancontactPayment(clientSecret: string, data?: ConfirmBancontactPaymentData, options?: ConfirmBancontactPaymentOptions): Observable<PaymentIntentResult>; | ||
confirmBlikPayment(clientSecret: string, data?: ConfirmBlikPaymentData, options?: ConfirmBlikPaymentOptions): Observable<PaymentIntentResult>; | ||
confirmBoletoPayment(clientSecret: string, data?: ConfirmBoletoPaymentData, options?: ConfirmBoletoPaymentOptions): Observable<PaymentIntentResult>; | ||
confirmCardPayment(clientSecret: string, data?: ConfirmCardPaymentData, options?: ConfirmCardPaymentOptions): Observable<PaymentIntentResult>; | ||
confirmCashappPayment(clientSecret: string, data?: ConfirmCashappPaymentData, options?: ConfirmCashappPaymentOptions): Observable<PaymentIntentResult>; | ||
confirmCustomerBalancePayment(clientSecret: string, data: ConfirmCustomerBalancePaymentData, options: ConfirmCustomerBalancePaymentOptions): Observable<PaymentIntentResult>; | ||
@@ -66,2 +82,5 @@ confirmEpsPayment(clientSecret: string, data?: ConfirmEpsPaymentData, options?: ConfirmEpsPaymentOptions): Observable<PaymentIntentResult>; | ||
handleCardAction(clientSecret: string): Observable<PaymentIntentResult>; | ||
handleNextAction(options: { | ||
clientSecret: string; | ||
}): Observable<PaymentIntentOrSetupIntentResult>; | ||
verifyMicrodepositsForPayment(clientSecret: string, data?: VerifyMicrodepositsForPaymentData): Observable<PaymentIntentResult>; | ||
@@ -71,2 +90,4 @@ createRadarSession(): Observable<RadarSessionPayload>; | ||
createPaymentMethod(paymentMethodData: CreatePaymentMethodData): Observable<PaymentMethodResult>; | ||
createPaymentMethod(options: CreatePaymentMethodFromElements): Observable<PaymentMethodResult>; | ||
createPaymentMethod(options: CreatePaymentMethodFromElement): Observable<PaymentMethodResult>; | ||
retrievePaymentIntent(clientSecret: string): Observable<PaymentIntentResult>; | ||
@@ -79,2 +100,8 @@ confirmSetup(options: { | ||
confirmSetup(options: { | ||
elements?: StripeElements; | ||
clientSecret: string; | ||
confirmParams?: Partial<ConfirmPaymentData>; | ||
redirect: 'if_required'; | ||
}): Observable<SetupIntentResult>; | ||
confirmSetup(options: { | ||
elements: StripeElements; | ||
@@ -86,2 +113,10 @@ confirmParams: ConfirmPaymentData; | ||
}>; | ||
confirmSetup(options: { | ||
elements?: StripeElements; | ||
clientSecret: string; | ||
confirmParams: ConfirmPaymentData; | ||
redirect?: 'always'; | ||
}): Observable<never | { | ||
error: StripeError; | ||
}>; | ||
confirmAcssDebitSetup(clientSecret: string, data?: ConfirmAcssDebitSetupData, options?: ConfirmAcssDebitSetupOptions): Observable<SetupIntentResult>; | ||
@@ -93,2 +128,3 @@ confirmUsBankAccountSetup(clientSecret: string, data?: ConfirmUsBankAccountSetupData): Observable<SetupIntentResult>; | ||
confirmCardSetup(clientSecret: string, data?: ConfirmCardSetupData, options?: ConfirmCardSetupOptions): Observable<SetupIntentResult>; | ||
confirmCashappSetup(clientSecret: string, data?: ConfirmCashappSetupData, options?: ConfirmCashappSetupOptions): Observable<SetupIntentResult>; | ||
confirmIdealSetup(clientSecret: string, data?: ConfirmIdealSetupData): Observable<SetupIntentResult>; | ||
@@ -95,0 +131,0 @@ confirmPayPalSetup(clientSecret: string, data?: ConfirmPayPalSetupData): Observable<SetupIntentResult>; |
{ | ||
"name": "ngx-stripe", | ||
"version": "16.0.0", | ||
"version": "16.1.0", | ||
"repository": { | ||
@@ -17,3 +17,3 @@ "type": "git", | ||
"@angular/core": ">=16.0.0 <17.0.0", | ||
"@stripe/stripe-js": "^1.52.0 <2.0.0" | ||
"@stripe/stripe-js": "^1.53.0 <2.0.0" | ||
}, | ||
@@ -20,0 +20,0 @@ "module": "fesm2022/ngx-stripe.mjs", |
@@ -21,2 +21,3 @@ export { NgxStripeModule } from './lib/ngx-stripe.module'; | ||
export { StripePaymentElementComponent } from './lib/components/payment-element.component'; | ||
export { StripePaymentMethodMessagingComponent } from './lib/components/payment-method-messaging.component'; | ||
export { StripePaymentRequestButtonComponent } from './lib/components/payment-request-button.component'; | ||
@@ -23,0 +24,0 @@ export { StripeCardGroupDirective } from './lib/directives/card-group.directive'; |
@@ -66,2 +66,3 @@ An Angular 6+ wrapper for StripeJS elements | ||
| ------- | ------------------- | ----------------- | | ||
| 16 | **Not Available** | 16.x+ | | ||
| 15 | **Not Available** | 15.x+ | | ||
@@ -68,0 +69,0 @@ | 14 | **Not Available** | 14.x+ | |
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
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
1256470
83
9580
226
0