stripe_api_sdk 1.0.0
stripe_api_sdk: ^1.0.0 copied to clipboard
Unofficial Stripe API SDK
Stripe API SDK #
Unofficial Stripe API SDK #
Hecho en 🇵🇷 por Radamés J. Valentín Reyes #
Import #
import 'package:stripe_api_sdk/stripe_api_sdk.dart';
Get Started #
Create an instance of Stripe
Stripe stripe = Stripe(
secretKey: secretKey,
);
API Functions #
Get my balance #
Balance myBalance = await stripe.getMyBalance();
List all balance transactions #
ListOfBalanceTransactions balanceTransactions = await stripe.listAllBalanceTransactions();
Get balance transaction #
BalanceTransaction balanceTransaction = await getBalanceTransaction(
balanceTransactionID : balanceTransactionID,
);
Create Charge #
Create a Customer #
Customer customer = await stripe.createACustomer(
email: "valentin.radames@outlook.com",
description: "Radames account",
phone: "1234567890",
name: "Radamés Valentín",
);
References #
- https://stripe.com/docs/api
- https://stripe.com/docs/api/balance
- https://stripe.com/docs/api/balance_transactions/object
- https://stripe.com/docs/api/charges
- https://stripe.com/docs/api/charges/object#charge_object-billing_details
- https://stripe.com/docs/api/charges/object#charge_object-billing_details-address
- https://stripe.com/docs/api/customers