WebStripe class
An implementation of StripePlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- StripePlatform
- WebStripe
Constructors
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?
-
getter/setter pair
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
-
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
-
confirmApplePayPayment(
String clientSecret) → Future< void> -
override
-
confirmPayment(
String paymentIntentClientSecret, PaymentMethodParams? params, [PaymentMethodOptions? options]) → Future< PaymentIntent> -
override
-
confirmPaymentElement(
ConfirmPaymentElementOptions options) → Future< void> -
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
-
createCardPaymentMethod(
PaymentMethodParams data, [Map< String, String> options = const {}]) → Future<PaymentMethod> -
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
-
handleURLCallback(
String url) → Future< bool> -
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< void> -
Configure the payment sheet using SetupPaymentSheetParameters as config.
override
-
isApplePaySupported(
) → Future< bool> -
override
-
isPlatformPaySupported(
{IsGooglePaySupportedParams? params}) → 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< PaymentMethod> -
Use native payment sheet to create payment method
override
-
presentApplePay(
ApplePayPresentParams params, OnDidSetShippingContact? onDidSetShippingContact, OnDidSetShippingMethod? onDidSetShippingMethod) → Future< void> -
override
-
presentGooglePay(
PresentGooglePayParams params) → Future< void> -
override
-
presentPaymentSheet(
) → Future< void> -
Display the payment sheet.
override
-
resetPaymentSheetCustomer(
) → Future< void> -
Reset the payment sheet.
override
-
retrievePaymentIntent(
String clientSecret) → Future< PaymentIntent> -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
updateApplePaySummaryItems(
{required List< ApplePayCartSummaryItem> summaryItems, List<ApplePayErrorAddressField> ? errorAddressFields}) → Future<void> -
override
-
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
Static Methods
-
registerWith(
Registrar registrar) → void