with ifthenpay and Hamsa?
Emit new event when a payment is successfully completed through Ifthenpay. See the documentation
Generates a Multibanco or MB WAY payment reference with a specified amount, entity code, and deadline. See the documentation
Transform transcribed content into various formats for content marketing. See the documentation
Issue a full or partial refund for a previously completed payment via Ifthenpay. See the documentation
Converts text input into artificial speech using Hamsa. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ifthenpay: {
type: "app",
app: "ifthenpay",
}
},
async run({steps, $}) {
const data = {
"boKey": `${this.ifthenpay.$auth.backoffice_key}`,
"dateStart": `21-10-2024 00:00:00`,
"dateEnd": `30-04-2025 00:00:00`,
}
return await axios($, {
method: "post",
url: `https://api.ifthenpay.com/v2/payments/read`,
headers: {
"accept": `application/json`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
hamsa: {
type: "app",
app: "hamsa",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.tryhamsa.com/v1/projects/by-api-key`,
headers: {
"authorization": `Token ${this.hamsa.$auth.api_key}`,
},
})
},
})