type Stripe = {
token: string;
};
export async function main(stripe_con: Stripe, id: string) {
const STRIPE_CAPTURE_PAYMENT_URL = `https://api.stripe.com/v1/payment_intents/:${id}/capture`;
const token = stripe_con["token"];
const response = await fetch(STRIPE_CAPTURE_PAYMENT_URL, {
method: "POST",
headers: {
Authorization: "Bearer " + token,
"Content-Type": "application/json",
},
});
return await response.json();
}
Submitted by admin 497 days ago
type Stripe = {
token: string;
};
export async function main(stripe_con: Stripe, id: string) {
const STRIPE_CAPTURE_PAYMENT_URL =
`https://api.stripe.com/v1/payment_intents/:${id}/capture`;
const token = stripe_con["token"];
const response = await fetch(STRIPE_CAPTURE_PAYMENT_URL, {
method: "POST",
headers: {
Authorization: "Bearer " + token,
"Content-Type": "application/json",
},
});
return await response.json();
}
Submitted by admin 500 days ago
export async function main(stripe_con: wmill.Resource<"stripe">, id: string) {
const STRIPE_CAPTURE_PAYMENT_URL =
`https://api.stripe.com/v1/payment_intents/:${id}/capture`;
const token = stripe_con["token"];
const response = await fetch(STRIPE_CAPTURE_PAYMENT_URL, {
method: "POST",
headers: {
Authorization: "Bearer " + token,
"Content-Type": "application/json",
},
});
return await response.json();
}
Submitted by rossmccrann 852 days ago
export async function main(stripe_con: string, id: string) {
const STRIPE_CAPTURE_PAYMENT_URL =
`https://api.stripe.com/v1/payment_intents/:${id}/capture`;
const token = stripe_con["token"];
const response = await fetch(STRIPE_CAPTURE_PAYMENT_URL, {
method: "POST",
headers: {
Authorization: "Bearer " + token,
"Content-Type": "application/json",
},
});
return await response.json();
}
Submitted by rossmccrann 852 days ago