import Stripe from "https://esm.sh/stripe?target=deno";
type Stripe = {
token: string;
};
export async function main(stripe_con: Stripe, charge_id: string) {
const token = stripe_con["token"];
const stripe = Stripe(`${token}`, {
httpClient: Stripe.createFetchHttpClient(),
});
const refund = await stripe.refunds.create({
charge: `${charge_id}`,
});
return await refund.json();
}
Submitted by hugo697 207 days ago
import Stripe from "https://esm.sh/stripe?target=deno";
type Stripe = {
token: string;
};
export async function main(stripe_con: Stripe, charge_id: string) {
const token = stripe_con["token"];
const stripe = Stripe(`${token}`, {
httpClient: Stripe.createFetchHttpClient(),
});
const refund = await stripe.refunds.create({
charge: `${charge_id}`,
});
return await refund.json();
}
Submitted by admin 840 days ago
import Stripe from "https://esm.sh/stripe?target=deno";
type Stripe = {
token: string;
};
export async function main(
stripe_con: Stripe,
charge_id: string,
) {
const token = stripe_con["token"];
const stripe = Stripe(
`${token}`,
{
httpClient: Stripe.createFetchHttpClient(),
},
);
const refund = await stripe.refunds.create({
charge: `${charge_id}`,
});
return await refund.json();
} Submitted by admin 843 days ago
import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
import Stripe from "https://esm.sh/stripe?target=deno";
export async function main(
stripe_con: wmill.Resource<"stripe">,
charge_id: string,
) {
const token = stripe_con["token"];
const stripe = Stripe(
`${token}`,
{
httpClient: Stripe.createFetchHttpClient(),
},
);
const refund = await stripe.refunds.create({
charge: `${charge_id}`,
});
return await refund.json();
} Submitted by adam186 971 days ago
import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
import Stripe from "https://esm.sh/stripe?target=deno";
export async function main(
stripe_con: wmill.Resource<"stripe">,
charge_id: string,
) {
const token = stripe_con["token"];
const stripe = Stripe(
`${token}`,
{
httpClient: Stripe.createFetchHttpClient(),
},
);
const refund = await stripe.refunds.create({
charge: `${charge_id}`,
});
return await refund.json();
} Submitted by adam186 1006 days ago
import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
import Stripe from "https://esm.sh/stripe?target=deno";
export async function main(
stripe_con: wmill.Resource<"stripe">,
charge_id: string,
) {
const token = stripe_con["token"];
const stripe = Stripe(
`${token}`,
{
httpClient: Stripe.createFetchHttpClient(),
},
);
const refund = await stripe.refunds.create({
charge: `${charge_id}`,
});
return await refund.json();
} Submitted by rossmccrann 1195 days ago