Stripe class
Stripe is the Class that provides the Interface for external calls via the Stripe API.
Create an instance of this class, and use it like this:
final stripe = Stripe('privateApiKey');
final charge = await stripe.charge.retrieve(chargeId);
Constructors
- Stripe(String apiKey)
-
factory
- Stripe.withClient(Client client)
Properties
- balanceTransaction → BalanceTransactionResource
-
https://stripe.com/docs/api/balance_transactions
final
- charge → ChargeResource
-
https://stripe.com/docs/api/charges
final
- checkoutSession → CheckoutSessionResource
-
https://stripe.com/docs/api/checkout/sessions
final
- client → Client
-
Our actual client implementation that communicates with Stripe.
final
- customer → CustomerResource
-
https://stripe.com/docs/api/customers
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- paymentIntent → PaymentIntentResource
-
https://stripe.com/docs/api/payment_intents
final
- portalSession → PortalSessionResource
-
https://stripe.com/docs/api/billing_portal/sessions
final
- price → PriceResource
-
https://stripe.com/docs/api/prices
final
- product → ProductResource
-
https://stripe.com/docs/api/products
final
- refund → RefundResource
-
https://stripe.com/docs/api/refunds
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subscription → SubscriptionResource
-
https://stripe.com/docs/api/subscriptions
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited