MoonClerk is a web-based application designed to facilitate recurring and one-time transactions without hassle.
You can use the MoonClerk API to create and manage online payments for your
business. With MoonClerk, you can accept payments from customers via credit
card, bank account, or PayPal. You can also use MoonClerk to set up recurring
payments, so customers can make automatic payments on a schedule you specify.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
moonclerk: {
type: "app",
app: "moonclerk",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.moonclerk.com/customers`,
headers: {
"Authorization": `Token token=${this.moonclerk.$auth.api_key}`,
"Accept": `application/vnd.moonclerk+json;version=1`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})