Cloud communications platform for building SMS, Voice & Messaging applications on an API built for global scale
Go to siteCancel a payment intent. Once canceled, no additional charges will be made by the payment intent and any operations on the payment intent will fail with an error. For payment intents with status=requires_capture
, the remaining amount_capturable will automatically be refunded. See the docs for more information
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
twilio: {
type: "app",
app: "twilio",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.twilio.com/2010-04-01/Accounts.json`,
auth: {
username: `${this.twilio.$auth.Sid}`,
password: `${this.twilio.$auth.Secret}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
stripe: {
type: "app",
app: "stripe",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.stripe.com/v1/accounts`,
auth: {
username: `${this.stripe.$auth.api_key}`,
password: ``,
},
})
},
})