with IONOS Hosting Services and ifthenpay?
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
Issue a full or partial refund for a previously completed payment via Ifthenpay. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ionos_hosting_services: {
type: "app",
app: "ionos_hosting_services",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.hosting.ionos.com/dns/v1/zones`,
headers: {
"accept": `application/json`,
"x-api-key": `${this.ionos_hosting_services.$auth.public_prefix}.${this.ionos_hosting_services.$auth.secret}`,
"cookie": `0b04270753322c986927738ac2b6c0d8=f0bdc4e5976f6d806c765101692526bc; DPX=v1:SBQ1uQuBY/:PKIEBpGz:68843834:de`,
},
})
},
})
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,
})
},
})