Stripe
A secure client library for Stripe's API
Install
npm install @appstitch/stripeappstitch_stripe: ^1.0.0npm install @appstitch/core
npm install @appstitch/typesappstitch_core: ^2.0.0Usage
import { createSubscription } from "@appstitch/stripe";
// OR
import * as stripeClient from "@appstitch/stripe";import 'package:appstitch_stripe/stripe.dart'Create a customer
import * as stripe from "@appstitch/stripe";
const createCustomer = () => {
stripe.createCustomer({
email: "[email protected]"
})
.then((res) => {
if (res.object === "customer") {
// success
}
})
}import 'package:appstitch_stripe/stripe.dart';
import 'package:appstitch_stripe/types.dart';
createCustomer() async {
final customerOpts = CreateCustomerOpts(email: "[email protected]");
final customer = await stripe.createCustomer(customerOpts);
if (customer.object == "customer") {
// success
}
}
Create a subscription
Create a Payment Intent
Stripe Connect Options
Exceptions
Last updated