WebStripe class

An implementation of StripePlatform that uses method channels.

Inheritance

Constructors

WebStripe()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updateSettingsLazily bool
no setteroverride
urlScheme String
no setter

Methods

buildCard({Key? key, required CardEditController controller, CardChangedCallback? onCardChanged, CardFocusCallback? onFocus, CardStyle? style, CardPlaceholder? placeholder, bool enablePostalCode = false, double? width, double? height, BoxConstraints? constraints, FocusNode? focusNode, bool autofocus = false, bool dangerouslyUpdateFullCardDetails = false}) Widget
override
buildPaymentRequestButton({Key? key, required VoidCallback onPressed, required PlatformPayWebPaymentRequestCreateOptions paymentRequestCreateOptions, BoxConstraints? constraints, PlatformButtonType? type, PlatformButtonStyle? style}) Widget
override
canAddCardToWallet(CanAddCardToWalletParams params) Future<CanAddCardToWalletResult>
override
canAddToWallet(String last4) Future<AddToWalletResult>
override
collectBankAccount({required bool isPaymentIntent, required String clientSecret, required CollectBankAccountParams params}) Future<PaymentIntent>
Methods related to ACH payments
override
collectBankAccountToken({required String clientSecret}) Future<FinancialConnectionTokenResult>
Methods related to financial connections
override
collectFinancialConnectionsAccounts({required String clientSecret}) Future<FinancialConnectionSessionResult>
override
configurePlatformOrderTracking({required PlatformPayOrderDetails orderDetails}) Future<void>
override
confirmAcssDebitPayment(String paymentIntentClientSecret, String paymentMethodId) Future<PaymentIntent>
confirmIdealPayment(String paymentIntentClientSecret, PaymentMethodDataIdeal paymentData, {String? returnUrl}) Future<PaymentIntent>
confirmPayment(String paymentIntentClientSecret, PaymentMethodParams? params, [PaymentMethodOptions? options]) Future<PaymentIntent>
override
confirmPaymentElement(ConfirmPaymentElementOptions options) Future<PaymentIntent>
confirmPaymentSheetPayment() Future<void>
Confirm the payment on a payment sheet.
override
confirmSetupIntent(String setupIntentClientSecret, PaymentMethodParams data, PaymentMethodOptions? options) Future<SetupIntent>
override
createApplePayToken(Map<String, dynamic> payment) Future<TokenData>
override
createGooglePayPaymentMethod(CreateGooglePayPaymentParams params) Future<PaymentMethod>
override
createPaymentMethod(PaymentMethodParams data, [PaymentMethodOptions? options]) Future<PaymentMethod>
override
createToken(CreateTokenParams params) Future<TokenData>
Creates a token for card details.
override
createTokenForCVCUpdate(String cvc) Future<String>
override
dangerouslyUpdateCardDetails(CardDetails card) Future<void>
Updates the internal card details. This method will not validate the card information so you should validate the information yourself. WARNING!!! Only do this if you're certain that you fulfill the necessary PCI compliance requirements. Make sure that you're not mistakenly logging or storing full card details! See the docs for details: https://stripe.com/docs/security/guide#validating-pci-compliance
override
googlePayIsSupported(IsGooglePaySupportedParams params) Future<bool>
override
handleNextAction(String paymentIntentClientSecret, {String? returnURL}) Future<PaymentIntent>
override
handleNextActionForSetupIntent(String setupIntentClientSecret, {String? returnURL}) Future<SetupIntent>
override
handleURLCallback(String url) Future<bool>
override
initCustomerSheet(CustomerSheetInitParams params) Future<CustomerSheetResult?>
Configure the payment sheet using CustomerSheetInitParams as config.
override
initGooglePay(GooglePayInitParams params) Future<void>
override
initialise({required String publishableKey, String? stripeAccountId, ThreeDSecureConfigurationParams? threeDSecureParams, String? merchantIdentifier, String? urlScheme, bool? setReturnUrlSchemeOnAndroid}) Future<void>
override
initPaymentSheet(SetupPaymentSheetParameters params) Future<PaymentSheetPaymentOption?>
Configure the payment sheet using SetupPaymentSheetParameters as config.
override
intentCreationCallback(IntentCreationCallbackParams params) Future<void>
Method used to confirm to the user that the intent is created successfull or not successfull when using a defferred payment method.
override
isCardInWallet(String cardLastFour) Future<IsCardInWalletResult>
override
isPlatformPaySupported({IsGooglePaySupportedParams? params, PlatformPayWebPaymentRequestCreateOptions? paymentRequestOptions}) Future<bool>
Check if either google pay or apple pay is supported on device.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openApplePaySetup() Future<void>
override
platformPayConfirmPaymentIntent({required String clientSecret, required PlatformPayConfirmParams params}) Future<PaymentIntent>
Start native Payment sheet to confirm payment intent
override
platformPayConfirmSetupIntent({required String clientSecret, required PlatformPayConfirmParams params}) Future<SetupIntent>
Start native Payment sheet to confirm setup intent
override
platformPayCreatePaymentMethod({required PlatformPayPaymentMethodParams params, bool usesDeprecatedTokenFlow = false}) Future<PlatformPayPaymentMethod>
Use native payment sheet to create payment method
override
presentCustomerSheet({CustomerSheetPresentParams? options}) Future<CustomerSheetResult?>
Display the customersheet sheet.
override
presentGooglePay(PresentGooglePayParams params) Future<void>
override
presentPaymentSheet({PaymentSheetPresentOptions? options}) Future<PaymentSheetPaymentOption?>
Display the payment sheet.
override
resetPaymentSheetCustomer() Future<void>
Reset the payment sheet.
override
retrieveCustomerSheetPaymentOptionSelection() Future<CustomerSheetResult?>
override
retrievePaymentIntent(String clientSecret) Future<PaymentIntent>
override
retrieveSetupIntent(String clientSecret) Future<SetupIntent>
override
toString() String
A string representation of this object.
inherited
updatePlatformSheet({required PlatformPaySheetUpdateParams params}) Future<void>
override
verifyPaymentIntentWithMicrodeposits({required bool isPaymentIntent, required String clientSecret, required VerifyMicroDepositsParams params}) Future<PaymentIntent>
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

element ↔ StripeElement?
getter/setter pair
elements ↔ StripeElements?
getter/setter pair
instance WebStripe
final
js → Stripe
no setter

Static Methods

registerWith(Registrar registrar) → void