Created by rossmccrann 212 days ago Viewed 54 times 1 Point
Capture the funds of an existing uncaptured payment intent. See the docs for more information
No comments yet
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();
}
No comments yet