Stripe class
Stripe is the facade of the library and exposes the operations that can be executed on the Stripe platform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isApplePaySupported
→ ValueListenable<
bool> -
Exposes a ValueListenable whether or not Apple pay is supported for this
device.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
applySettings(
) → Future< void> - Reconfigures the Stripe platform by applying the current values for publishableKey, merchantIdentifier, stripeAccountId, threeDSecureParams, urlScheme
-
canAddToWallet(
String last4) → Future< AddToWalletResult> - check if a particular card can be provisioned with the current app on this particular device.
-
checkApplePaySupport(
) → Future< bool> - Checks if Apple pay is supported on this device.
-
collectBankAccount(
{required bool isPaymentIntent, required String clientSecret, required CollectBankAccountParams params}) → Future< PaymentIntent> - Collect the bankaccount details for the payment intent.
-
collectBankAccountToken(
{required String clientSecret}) → Future< FinancialConnectionTokenResult> - Call the financial connections authentication flow in order to collect a US bank account to enhance payouts.
-
collectFinancialConnectionsAccounts(
{required String clientSecret}) → Future< FinancialConnectionSessionResult> - Call the financial connections authentication flow in order to collect the user account data.
-
confirmApplePayPayment(
String clientSecret) → Future< void> -
Confirms the Apple pay payment using the provided
clientSecret
. Use this method when the form is being submitted. -
confirmPayment(
{required String paymentIntentClientSecret, PaymentMethodParams? data, PaymentMethodOptions? options}) → Future< PaymentIntent> -
Confirms a payment method, using the provided
paymentIntentClientSecret
anddata
. -
confirmPaymentSheetPayment(
) → Future< void> - Confirms the paymentsheet payment
-
confirmSetupIntent(
{required String paymentIntentClientSecret, required PaymentMethodParams params, PaymentMethodOptions? options}) → Future< SetupIntent> -
Confirm the
SetupIntent
using thepaymentIntentClientSecret
andparams
. -
createApplePayToken(
Map< String, dynamic> payment) → Future<TokenData> - Creates a single-use token that represents an Apple Pay credit card’s details.
-
createGooglePayPaymentMethod(
CreateGooglePayPaymentParams params) → Future< PaymentMethod> - Create a payment method for google pay.
-
createPaymentMethod(
{required PaymentMethodParams params, PaymentMethodOptions? options}) → Future< PaymentMethod> -
Converts payment information defined in
params
into aPaymentMethod
object that can be passed to your server. -
createToken(
CreateTokenParams params) → Future< TokenData> - Creates a single-use token that represents a credit card’s details.
-
createTokenForCVCUpdate(
String cvc) → Future< String?> - Creates a token that represents an updated CVC.
-
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
-
handleNextAction(
String paymentIntentClientSecret) → Future< PaymentIntent> -
Use this method in case the
PaymentIntent
status is PaymentIntentsStatus.RequiresAction. Executing this action can take several seconds and it is important to not resubmit the form. -
handleURLCallback(
String url) → Future< bool> - Handle URL callback from iDeal payment returnUrl to close iOS in-app webview
-
initGooglePay(
GooglePayInitParams params) → Future< void> - Inititialise google pay
-
initPaymentSheet(
{required SetupPaymentSheetParameters paymentSheetParameters}) → Future< void> - Initializes the payment by providing a configuration
-
isGooglePaySupported(
IsGooglePaySupportedParams params) → Future< bool> - Determines if Google Pay is supported on the device
-
markNeedsSettings(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openApplePaySetup(
) → Future< void> - Opens the UI to set up credit cards for Apple Pay.
-
presentApplePay(
ApplePayPresentParams params) → Future< void> -
Presents an Apple payment sheet using
params
for additional configuration. See ApplePayPresentParams for more details. -
presentGooglePay(
PresentGooglePayParams params) → Future< void> - Setup google pay.
-
presentPaymentSheet(
{dynamic parameters}) → Future< void> - Displays the paymentsheet
-
retrievePaymentIntent(
String clientSecret) → Future< PaymentIntent> -
Retrieves a
PaymentIntent
using the providedclientSecret
. -
toString(
) → String -
A string representation of this object.
inherited
-
verifyPaymentIntentWithMicrodeposits(
{required bool isPaymentIntent, required String clientSecret, required VerifyMicroDepositsParams params}) → Future< PaymentIntent> - Verify the bank account with microtransactions
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- buildWebCard → Widget Function({bool autofocus = false, BoxConstraints? constraints, required CardEditController controller, bool dangerouslyUpdateFullCardDetails = false, bool enablePostalCode = false, FocusNode? focusNode, double? height, Key? key, CardChangedCallback? onCardChanged, CardFocusCallback? onFocus, CardPlaceholder? placeholder, CardStyle? style, double? width})
-
final
- instance → Stripe
-
final
- merchantIdentifier ↔ String?
-
Retrieves the merchant identifier.
getter/setter pair
- publishableKey ↔ String
-
Retrieves the publishable API key.
getter/setter pair
- setReturnUrlSchemeOnAndroid ↔ bool?
-
Retrieves the setReturnUrlSchemeOnAndroid parameter
getter/setter pair
- stripeAccountId ↔ String?
-
Retrieves the id associate with the Stripe account.
getter/setter pair
- threeDSecureParams ↔ ThreeDSecureConfigurationParams?
-
Retrieves the configuration parameters for 3D secure.
getter/setter pair
- urlScheme ↔ String?
-
Retrieves the custom url scheme
getter/setter pair