import Stripe from "https://esm.sh/stripe?target=deno";
type Stripe = {
token: string;
};
export async function main(
stripe_con: Stripe,
customer_id: string,
price_id: string
) {
const token = stripe_con["token"];
const stripe = Stripe(`${token}`, {
httpClient: Stripe.createFetchHttpClient(),
});
const invoiceItem = await stripe.invoiceItems.create({
customer: `${customer_id}`,
price: `${price_id}`,
});
return await invoiceItem.json();
}
Submitted by hugo697 419 days ago
import Stripe from "https://esm.sh/stripe?target=deno";
type Stripe = {
token: string;
};
export async function main(
stripe_con: Stripe,
customer_id: string,
price_id: string,
) {
const token = stripe_con["token"];
const stripe = Stripe(`${token}`, {
httpClient: Stripe.createFetchHttpClient(),
});
const invoiceItem = await stripe.invoiceItems.create({
customer: `${customer_id}`,
price: `${price_id}`,
});
return await invoiceItem.json();
}
Submitted by admin 497 days ago
import Stripe from "https://esm.sh/stripe?target=deno";
type Stripe = {
token: string;
};
export async function main(
stripe_con: Stripe,
customer_id: string,
price_id: string,
) {
const token = stripe_con["token"];
const stripe = Stripe(
`${token}`,
{
httpClient: Stripe.createFetchHttpClient(),
},
);
const invoiceItem = await stripe.invoiceItems.create({
customer: `${customer_id}`,
price: `${price_id}`,
});
return await invoiceItem.json();
}
Submitted by admin 500 days ago
import * as wmill from "https://deno.land/x/windmill@v1.85.0/mod.ts";
import Stripe from "https://esm.sh/stripe?target=deno";
export async function main(
stripe_con: wmill.Resource<"stripe">,
customer_id: string,
price_id: string,
) {
const token = stripe_con["token"];
const stripe = Stripe(
`${token}`,
{
httpClient: Stripe.createFetchHttpClient(),
},
);
const invoiceItem = await stripe.invoiceItems.create({
customer: `${customer_id}`,
price: `${price_id}`,
});
return await invoiceItem.json();
}
Submitted by adam186 628 days ago
import * as wmill from "https://deno.land/x/windmill@v1.70.1/mod.ts";
import Stripe from "https://esm.sh/stripe?target=deno";
export async function main(
stripe_con: wmill.Resource<"stripe">,
customer_id: string,
price_id: string,
) {
const token = stripe_con["token"];
const stripe = Stripe(
`${token}`,
{
httpClient: Stripe.createFetchHttpClient(),
},
);
const invoiceItem = await stripe.invoiceItems.create({
customer: `${customer_id}`,
price: `${price_id}`,
});
return await invoiceItem.json();
}
Submitted by adam186 663 days ago
import * as wmill from "https://deno.land/x/windmill@v1.34.0/mod.ts";
import Stripe from "https://esm.sh/stripe?target=deno";
export async function main(
stripe_con: wmill.Resource<"stripe">,
customer_id: string,
price_id: string,
) {
const token = stripe_con["token"];
const stripe = Stripe(
`${token}`,
{
httpClient: Stripe.createFetchHttpClient(),
},
);
const invoiceItem = await stripe.invoiceItems.create({
customer: `${customer_id}`,
price: `${price_id}`,
});
return await invoiceItem.json();
}
Submitted by rossmccrann 852 days ago