stripe_api_sdk

Creator: coderz1093

Last updated:

0 purchases

stripe_api_sdk Image
stripe_api_sdk Images

Languages

Categories

Add to Cart

Description:

stripe api sdk

Stripe API SDK #
Unofficial Stripe API SDK(under development) #
Hecho en 🇵🇷 por Radamés J. Valentín Reyes #
Import #
import 'package:stripe_api_sdk/stripe_api_sdk.dart';
import 'package:stripe_api_sdk/objects.dart';
copied to clipboard
Get Started #
Create an instance of Stripe
Stripe stripe = Stripe(
secretKey: secretKey,
);
copied to clipboard
API Functions #
Get my balance #
Balance myBalance = await stripe.getMyBalance();
copied to clipboard
List all balance transactions #
ListOfBalanceTransactions balanceTransactions = await stripe.listAllBalanceTransactions();
copied to clipboard
Get balance transaction #
BalanceTransaction balanceTransaction = await getBalanceTransaction(
balanceTransactionID : balanceTransactionID,
);
copied to clipboard
Create Charge #
copied to clipboard
Create a Customer #
Customer customer = await stripe.createACustomer(
customer: Customer(
description: "Radamés account",
email: "[email protected]",
name: "Radamés Valentín",
phone: "1234567890",
),
);
copied to clipboard
Retrieve a customer #
Customer retrievedCustomer = await stripe.retrieveCustomer(
customerId: "customerId",
);
copied to clipboard
Update a customer #
Customer modifiedCustomer = await stripe.updateCustomer(
customerId: "customer_id",
name: "Juan del Pueblo",
);
copied to clipboard
Delete a customer #
bool deleted = await stripe.deleteCustomer(customerId: customer.id!);
copied to clipboard
List all customers #
AllCustomersList allCustomersList = await stripe.listAllCustomers();
copied to clipboard
List all customers(next page) #
AllCustomersList allCustomersList = await stripe.listAllCustomers();
AllCustomersList nextPage = await stripe.listAllCustomers(
startingAfter: allCustomersList.customers.last.id,
);
copied to clipboard
Search customers #
Create a PaymentIntent #
PaymentIntent paymentIntent = await stripe.createPaymentIntent(
amount: 100,
);
copied to clipboard

Contribute/donate by tapping on the Pay Pal logo/image #


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
https://support.stripe.com/questions/cannot-charge-a-customer-that-has-no-active-card-error-when-creating-a-charge-using-paymentmethod-and-charges-api
https://stripe.com/docs/api/payment_intents

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.